To find the residue I used the residue theorem that states:
$$Res(f,z_0)=\frac{1}{(m-1)!}\lim_{z\to0}\frac{\mathrm{d}^{m-1}}{\mathrm{d}z^{m-1}}(z-z_0)^m f(z)$$ where $m$ is the order
Computing the Residue of $\dfrac{\cot(\pi z)}{z^2}$ This is what I thought I was supposed to do for the singularity at $z_0=0$ of order $3$.
$$Res(f;0)=\frac{1}{2!}\lim_{z\to 0} \frac{\mathrm{d}^2}{\mathrm{d}z^2}z^2 \sin(\pi z)f(z)=-\frac{1}{2}\lim_{z \to 0} \pi^2 \cos(\pi z) =-\frac{\pi^2}{2}$$
However the answer is $-\dfrac{\pi}{3}$
I'd really appreciate any guidance in where I went wrong.