You can take oral analgesics for this and apply hemorrhoidal anesthetic
gel, this will provide comfort as well as reduce inflammation. Mostly this should suffice.
But if the swelling increases then I would worry about a subcutaneous hematoma
and in that case seeing doctor would be ideal step.