Dear wiseman. hanyani, YOU MIGHT HAVE Caught inflammation of glans
of penis or of foreskin causing local swelling or you may have tried sex when your partner would have not be ready and had dry vagina or caught an infection, in all condition you have consult a dermatologist
to see and treat you with drug therapy till then don't try to have sex. rest to the part and keep local hygiene maintained.