Bleeding during sex?

So I haven't had sex in like 4 months. And when I did this last time I started bleeding. I don't know what it's from or what? The guy I did it with was kind of mad and I didn't know what to tell him happened. I know it's not my period cause I got it two weeks ago. Help please?