Hi, thanks for posting your query.
From description it seems to be sprain
might be due to injury
to superficial nerve fibres. If swelling persist, it is advisable to go for xray to rule out any bony injury. Rest and immobilization is required for this. You can tahe antiinflammatory drug like ibuprofen
for pain and inflammation.
Hope this will helps you