It looks like a prolapse in some of the shots. Can you tell for sure if it is coming out of the rectum? If so, then it is a prolapse. You can soak it in some warm sugar water to help the swelling go down, and if it does not go in by itself, you can very gently push it back into the frog with a q-tip. Place him in a sterile tank or bin with moist paper towels as the substrate until it is all healed up.
-----
www.frogfreaks.com