Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

CANBERRA, Australia — An Australian senator has had a raw egg cracked over his head and faces censure from his fellow lawmakers after sparking outrage by blaming Muslim immigration for the New Zealand mosque shootings.

Sen. Fraser Anning came under blistering criticism over tweets on Friday including one that said, "Does anyone still dispute the link between Muslim immigration and violence?"

"The real cause of the bloodshed on New Zealand streets today is the immigration program which allowed Muslim fanatics to migrate to New Zealand in the first place," he said in a statement.

Television cameras caught a 17-year-old boy breaking an egg on Anning's head and briefly scuffling with the independent senator while he was holding a news conference Saturday in Melbourne.

Police said the boy was arrested but was released without charge pending a further investigation.

The government and opposition party agreed to pass a censure motion against Anning over his stance on the Christchurch shootings when Parliament resumes in April.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Prime Minister Scoot Morrison said he denounced Anning's comments.

"In his conflation of this horrendous terrorist attack with issues of immigration, in his attack on Islamic faith specifically — these comments are appalling and they're ugly and they have no place in Australia, in the Australian Parliament," Morrison said. "He should be, frankly, ashamed of himself."

Bilal Rauf, spokesman for the Australian National Imams Council, the nation's top Muslim group, likened the senator's views to the rambling manifesto published online by suspect Brenton Tarrant before the slayings.

"When one looks at his statement, it may as well have been an extract from the manifesto of the person that perpetrated these heinous crimes, this act of terrorism in Christchurch," Rauf said.

Rauf said Anning was unfit for the Senate.

Opposition lawmaker Penny Wong accused Anning of attempting to use the tragedy to grab attention ahead of elections in May.

Anning only received 19 votes in the last election in 2016. But because of a quirk in the Australian electoral system, he was elevated to the Senate by the anti-immigration, anti-Muslim One Nation party after a court ruled that its senator, Malcolm Roberts, had not been eligible to run in election due to his dual citizenship.

Anning later defected from One Nation to another anti-immigration party, then became an independent. Analysts say Anning is unlikely to be re-elected as an independent candidate in May.

Anning was widely condemned for his first speech to the Senate in August advocating reviving a white-only immigration policy and using the term "final solution" in calling for a vote on which migrants to admit into the country. Critics accused him of making a veiled reference to the Nazi extermination of Jews.

The government also announced on Saturday it had banned right-wing commentator Milo Yiannopoulos from touring the country over his social media response to the Christchurch shootings.

Immigration Minister David Coleman said Yiannopoulos' social media comments are "appalling and foment hatred and division."

Lawmakers within Australia's conservative government had been quarreling in recent weeks over whether Yiannopoulos should be allowed to tour Australia this year.