Thanks for query,
You have to go to doctor as soon as possible as there may be injury
to penile urethra
and local injury to penis as there is swelling and pus is formed
Till the time you approach doctor you can give him antibiotic and anti inflammatory syrup to start.
ok and take care.