Yes, this example is just wrong. You are correct that the identity map on $A$ is always a kernel of the zero map $A\to B$. Their argument seems to assume that $r\mathbb{Z}$ cannot be all of $\mathbb{Z}$, but this is of course incorrect if $r=\pm 1$, which is exactly what happens for the identity map.