
poor you, kenya, hope you have got sorted out at the doctor and that you are feeling better. In the event that this happens to you again or to anyone else reading here, the advice from beekeepers is never try to get anything buzzing out of your hair...just aim yourself a smart smack on the head. If you try to extricate the bee/wasp/hornet, you are certain to get stung and with bees, the risk is that others will be along shortly to add to your trauma when they get the drift of their dead comrade's pheromones. Far better to try to kill it and you may well avoid the sting entirely. All you have to do then is make a swift exit.
A couple of years ago I heard the dreaded buzzing in my hair (I have an allergy to stings), leapt about trying to get it out of my hair while assisted by my then partner, who ended up getting stung for his trouble. My partner and I have split up and I am now a very happy beekeeper :)