This looks like an abscess/folliculitis, which is an infection in the skin, associated with the hair follicle.
Please apply Mupirocin ointment thrice a day over the swelling.
If your pain increases/ swelling increases, please see a surgeon immediately.
If you have
Diabetes, please see a doctor right away.