period sex?

My boyfriend and I tried period sex for the first time, and I was horny so don't get me wrong when I say this, but I was dry and it hurt so we had to stop. 
He was wearing a condom that wasn't so lubed up, would that have made it hurt?
What happened?