$$\because\sin(z)=\sin(z-\pi+\pi)=-\sin(z-\pi), \space\space\space\space\space\space \space\space\space\space\text{since } \sin(\pi+\theta)=-\sin(\theta).$$
$$\therefore -\sin(z-\pi)=-\sum_{n=0}^\infty \frac{(-1)^n(z-\pi)^{2n+1}}{(2n+1)!}=\sum_{n=0}^\infty \frac{(-1)^{n+1}(z-\pi)^{2n+1}}{(2n+1)!}$$
$$\therefore \begin{align} \frac{\sin(z)}{(z-\pi)^2}= \frac{\sum_{n=0}^\infty \frac{(-1)^{n+1}(z-\pi)^{2n+1}}{(2n+1)!}}{(z-\pi)^2}=\sum_{n=0}^\infty \frac{(-1)^{n+1}(z-\pi)^{2n-1}}{(2n+1)!}\end{align}$$
$$\\$$
$$\\$$
$$\frac{\sin(z)}{(z-\pi)^2}=\frac{(-1)^{n+1}(z-\pi)^{2n-1}}{(2n+1)!}=-\frac{1}{z-\pi}+\cdots$$
Therefore, the residue of $\frac{\sin(z)}{(z-\pi)^2}$ at $z_0=\pi$ is $-1$, which is the coefficient of $(z-z_0)^{-1}$.