What you have appears to be an infected hair follicle cyst which we often call a boil. You should see your doctor and he most likely will drain it and relieve your pain.

boil