First time sex and bleeding?

I had sex for the first time 4 days ago, and after it I was bleeding lightly for two days then it stopped. I've masturbated today, which I have done before, and I was bleeding again. My period also isn't due for another week. Anyone know what this might be?