It seems that you might be having ingrowing hair follicle infection
leading to abscess
formation and now burst open giving rise to pus and blood.
Clean the wound with antiseptic lotion and do dressing with antibiotic cream.
After removing pus and infected material you will feel relief from pain.
Ok and take care.