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.
This answer is inspired and guided by (and also copied from) everyone who helped me: Lubin, JCAA, and M.darwich.
By Cauchy's theorem (or, as Lubin mentioned, by the fact that $G$ is a $p$-group), $G$ has an element of order $p$, so $\ker\phi\neq1$.
Suppose that $|\ker\phi|=p$. Then, as M.darwish noted, every element of $G\backslash\ker\phi$ has order $p^2$, so if $x\in G\backslash\ker\phi$, then $|x^p|=p$. It follows that $x^p\in\ker\phi$ for all $x\in G$, i.e., $\operatorname{Im}\phi\subseteq\ker\phi$. Hence, $|\operatorname{Im}\phi|\leq|\ker\phi|$. Now, $$|\operatorname{Im}\phi|=\frac{|G|}{|\ker\phi|}=\frac{p^3}{p}=p^2>p=|\ker\phi|,$$ a contradiction. Hence, $|\ker\phi|\neq p$.