I need help

I recently just started my period and tried a tampon when I wasn't on my period and it was easy, but now I was going to go swimming and tried putting one in and it hurt. Please help?