When was your chick "born"? Are there other chicks? Did you incubate and hatch them yourself?
If the chick is under a week old, did you notice if it had a scab or sore located below it's poop hole?
I need to warn you that once the intestines are dragged out of the body, bacteria will immediately colonize the wet tissue. The treatment would need to include an antibiotic. You would need to find some sterile saline solution or make your own and flush the expelled tissue thoroughly. Can you do that? Then you would need to gently try to push the tissue back inside, which may not work. You need to prepare yourself to euthanize this chick if it doesn't work.