Someone please help?

So I have tried to masturbate (clit rubbing) many times and in the beginning it feels good and then suddenly after like 30 seconds my vagina starts clenching every like half a second, IT only lasts for like 10secs but It’s so uncomfortable and it hurts! What can this be?! BTW I’m only 15 but I didn’t have anywhere else to Ask so...