TORONTO 鈥 A federal Green Party candidate from Ontario has apologized after a Facebook post suggesting he would send a pig carcass to Muslims forced his resignation from the party.

Erik Schomann, a candidate in the riding of Simcoe North, resigned from the Green Party on Thursday after the post emerged. In a phone interview with CTVNews.ca, he apologized for the post and said he accepted the party鈥檚 decision to release him, but added that the comments do not reflect his thoughts on Islam or the Muslim community.

鈥淚鈥檓 devastated,鈥 he said. 鈥淲hat was said was stupid and I regret it.鈥

鈥淚 have to accept responsibility for my actions.鈥 

Schomann said he spent several years living in Muslim communities overseas -- primarily in Nigeria -- and has "no gripe with Islam, certainly.鈥

The Green Party said in a statement that it 鈥渉as zero tolerance for sexism, Islamophobia, antisemitism, misogyny, homophobia or hate speech of any kind.鈥

The post in question features an image of three men standing in front of a barbeque, with the caption 鈥淪chomanner roasting a pig (we sent the left-overs to Denmark in support of the protesters of the Muhammed comic)鈥

The post is in reference to the Danish newspaper Jyllands-Posten鈥檚 decision to publish 12 images of the prophet Muhammed in September 2005. The depictions were largely condemned by Muslim groups in Denmark and led to protests around the world.

, the National Council of Canadian Muslims called on Green Party Leader Elizabeth May to drop Schomann and suggested any act of sending a pig carcass to Muslims is an act of intimidation from the alt-right.

鈥淲hile we greatly cherish the free speech rights of all Canadians, when you start promising to mail pieces of a pig carcass, you can no longer stand with the integrity and moral commitment that all those who wish to be elected must have,鈥 the council said in a statement.

Schomann said he鈥檚 been 鈥渁ttacked rather brutally on social media鈥 in the hours after news of the post broke, with people calling him 鈥渄isgusting鈥 and an 鈥渆mbarrassment鈥 online. 

He believes the timing of the post鈥檚 emergence suggests someone had been sifting through social media to find it ahead of the election. 

鈥淪omeone had to be searching through this,鈥 he said. 鈥淭here鈥檚 definitely an element of this that鈥檚 calculated.鈥

The Simcoe North Federal Green Party Riding Association released a statement Wednesday saying it was 鈥渄evastated鈥 to lose Schomann as a candidate.

鈥淲e 鈥 feel that the consequences for this one post are out of proportion to the offense and are detrimental to our democracy,鈥 the statement read.

鈥淗ow will parties find candidates willing to subject themselves to the possibility of public humiliation?鈥

The riding association said it fully supported Schomann 鈥渋n his quest to redeem his personal and professional reputation鈥 and would find a replacement candidate in the near future.

On Wednesday, two NDP candidates resigned from their party; one following allegations of domestic abuse and the other due to comments on social media sent to pro-pipeline protestors.

Olivier Mathieu, the NDP candidate for the Montreal-area riding of LaSalle-Emard-Verdun, denies any wrongdoing in the domestic abuse allegations against him, while Dock Currie, a candidate in the southern B.C. riding of Kamloops-Thompson-Cariboo, said the social media comments he made two years ago do not reflect who he is today.

The Conservatives also lost a candidate, with a party spokesperson saying they had found "discriminatory" social media posts from Cameron Ogilvie, who was running in Winnipeg North.