BRISTOL, Conn.-- ESPN announced that it has fired network analyst and former Boston Red Sox pitcher Curt Schilling following his comments on Facebook about transgender people.

In a statement released Wednesday, ESPN said "Curt Schilling has been advised that his conduct was unacceptable and his employment with ESPN has been terminated."

This week, Schilling reposted an image of an overweight man wearing a long blond wig and revealing women's clothing. It included the phrase: "Let him in! To the restroom with your daughter or else you're a narrow minded, judgmental, unloving, racist bigot who needs to die!!!"

Post shared by former Red Sox pitcher Curt Schilling. CBS Boston

Schilling added his own comments, saying, "A man is a man no matter what they call themselves" and "Now you need laws telling us differently? Pathetic."

Get Breaking News Delivered to Your Inbox

Schilling was apparently referring to laws in several states that restrict bathroom access to transgender people.

Schilling later deleted the post and defended himself in a blog post, CBS Boston reported.

"This latest brew ha ha is beyond hilarious," Schilling wrote on Tuesday. "I didn't post that ugly looking picture. I made a comment about the basic functionality of mens and womens restrooms, period."

Last summer, ESPN suspended Schilling for sharing a meme on several social media platforms, comparing Muslim extremists to Nazis.