Thanks for mailing your query here.
From the description given, I would advise to see a Surgeon doctor as soon as possible. If penis is very painful, try painkillers like Paracetamol
There could be couple of reasons for swollen penis e.g. Fractured corpora (tissue inside the penis) or paraphimosis
or blood supply problems.
I hope he recovers soon