I use to get this a lot when I would bite my nails and the skin around them...
Usually got like this though if it was aggravated by knocking it, or getting something in it and getting a reaction (i'm allergic to something in detergents/soap and band-aids)
Hope it gets better soon though