Let $p$ be an odd prime, and $G$ an abelian group of order $p^3$ which is not cyclic. The $p$th power map $$\phi:G\to G,\qquad g\mapsto g^p$$ is a group homomorphism. Is it true that $\ker\phi$ has order $p^2$ or $p^3$ ?
This is equivalent to asking whether $\operatorname{im}\phi$ has order $1$ or $p$. Since $G$ is not cyclic, every nonidentity element of $G$ has order $p$ or $p^2$, so every nonidentity element of $\operatorname{im}\phi$ has order $p$. But this does not imply that $\operatorname{im}\phi$ has order $p$, so I'm stuck.
Note: I can show this when $G$ is nonabelian.
Note: I would prefer a proof which does not use the fundamental theorem of finitely generated abelian groups.