Thus there exists analytic $g$ s.t. $f(z) = (z-z_0)^mg(z)$ where $g(z_0) \neq 0$.
Thus there exists a small ball around $z_0$ s.t. $g(z) \neq 0$ (by continuity) and analytic , which means $\frac{1}{g(z)}$ is analytic as well, thus $\frac{g'(z)}{g(z)}$ is analytic on that ball as well.
Since $m \ge 1$,
\begin{align*}
\frac{f'(z)}{f(z)} &= \frac{m(z-z_0)^{m-1}g(z) + (z-z_0)^m g'(z)}{(z-z_0)^m g(z)} \\
& = \frac{m(z-z_0)^{m-1}g(z) + (z-z_0)^m g'(z)}{(z-z_0)^m g(z)} \\
&= \frac{g'(z)}{g(z)} + m \frac{1}{z-z_0}
\end{align*}
We have shown $\frac{g'}{g}$ is analytic on that ball. Thus the residue, which means the coefficient of $(z-z_0)^{-1}$ is only $m$ .