I don't think that is correct because if let $\sin^2(z) = (z-n\pi)^2h(z)$ where $h(n\pi) \neq 0$, then $\frac{1}{h(z)}$ is analytic at neighbourhood of $n\pi$.
Thus $Res(\frac{\cos(\frac{z}{6})}{\sin^2(z)}, n\pi) = Res(\frac{\cos(\frac{z}{6})}{(z-n\pi)^2h(z)}, n\pi) = $ coefficient of $(z-n\pi)^{1}$ for function $ \frac{\cos(\frac{z}{6})}{h(z)}$
while $cos(\frac{z}{6}) =a_0 + a_1(z-n\pi)^{1} + O((z-n\pi)^2) $ and $\frac{1}{h(z)} = b_0 + b_1(z-n\pi)^{1} + O((z-n\pi)^2) $
thus the coefficient for the fraction at $(z-n\pi)^{1}$ is $a_0b_1 + a_1b_0$, which I get is $ 0 + (- \frac{1}{6} sin(\frac{n\pi}{6})\frac{1}{\cos^2(n\pi)})$
Just asking for a check of this idea.