I have this idea: if I choose a small open set $U\subset M$ then we can consider $T^1U=U\times S^{n-1},$ where $n=\dim M.$ (This is the hint that my professor provided. I don't know why that's true).
Using this, for any $x\in M,$ we can choose $U_x$ a small open set containing $x,$ so we can write: \begin{eqnarray*} T^1M&=&\bigcup_{x\in M} T^1U_x =\bigcup_{x\in M} (U_x\times S^{n-1})=\left(\bigcup_{x\in M} U_x\right)\times S^{n-1}=M\times S^{n-1}. \end{eqnarray*}
Using this equality, I conclude that $T^1M$ is compact if and only if $M$ is compact. I'm not sure about this result. I also tried to prove it using coverings, but I'm still stuck. Any help?