Hello,
The first possibility is of a boil or a cyst. It may be due to poor personal hygiene or minor trauma to the skin allowing bacteria to invade, use of antiperspirant deodorants, use of strong drugs which may hamper the immunity or a diabetic
patient, Warm compresses may help, antibiotics like topical ones like Mupirocin are used sometimes, good hygiene, no picking or compressing and zinc supplements may help.
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.