Thanks for your query,based on the facts that you have posted it appears that you have developed infection of the glans penis
due to allergic reaction
You need to take broad spectrum antibiotics like Cefotaxime along with anti inflammatory medication like Diclofenac
twice daily along with topical steroid
cream for local application.
Ensure to clean your genitals with warm water twice daily.and avoid any sexual activities till it gets cured completely.