Thanks for writing your query.
After reading your post, it seems that you have got soft tissue injury
The pain and swelling will subside in few days time.
At home, you can apply locally cold compress for some relief.
Also take proper rest for speedy recovery.
If pain is persisting, you can take pain killer like Ibuprofen
one tablet twice a day after meals along with an antacid
I hope this is helpful to you.