Is it possible that he has a prolapse? That can happen when their organ doesn't draw back up fully and a poo ball can form on the prolapsed part.
I would swim him in some warmish water and give him some antibiotics. If you can isolate him so he's not trying to breed and so you can keep the...