Ouch! Looks painful. Could be a bacterial infection or maybe he got something in it. Has he been bred? Try soaking it in warm water to help ease the pain. I would take him to a vet and tell them what you think it is. They can atleast give you an antibiotic to help it.