Sex in second trimester

Okay, so .. maybe TMI.. but me and my partner had sex not too long ago and at the end right before he came, my vagina started to hurt when he would go in & out.. of course, I am now swollen but it still hurts a lot..

What could be the reason for it hurting? (We didn't use lube.. but it didn't start hurting until the end)