Penis stinging after sex

After sex (unprotected) my boyfriend said that his penis was stinging from the inside, he couldn’t pee without it stinging so bad. What could this be? (Except from an STD)