Could have been a prolapse or could have been a male organ. Did you get a good enough look at it to tell? A prolapse will look just like a bulge of red possibly bloody flesh and a sex organ will look like, well, a sex organ.

On the chance it was a prolapse, if it happens again dissolving honey in the water bath will reduce swelling and help it go back in easier.