Thanks for writing in.
It can be a cyst with infection,muscle haematoma,radiculopathy
A visit to your doctor is must at the earliest.
Till the time you can take analgesic
Avoid any movements that give rise to pain as it may further aggravate the injury.
Hope this helps.