Sounds like a prolapse that you need to get taken care of. A vet will need to see the hamster. Without the care of a professional, more than likely the hamster will not survive. Prolaspes are very serious
You can help the HubPages community highlight top quality content by ranking this answer up or down.