That does not sound good. If it is attached to the frog, Do Not try to pull it OFF! Sounds like it could be a intestine prolapse. This will have to be looked at by a frog vet, ASAP.

This is just a guess from your info. Good luck.