An alleged terror plot by a Muslim army veteran to bomb a white supremacist rally has been thwarted, according to authorities.

Mark Domingo, 26, an infantryman who served a combat stint in Afghanistan, was arrested by federal agents while allegedly putting the final touches to a plan to plant a bomb at a Nazi rally in Long Beach, prosecutors have said.

Mr Domingo was arrested last Friday on a charge of providing material support to terrorists and a criminal complaint said he had been planning since March to “manufacture and use a weapon of mass destruction in order to commit mass murder”.

Court papers claim Mr Domingo discussed with an informant different types of attacks that included targeting Jews, churches and police officers.

Mr Domingo allegedly said he wanted revenge for attacks on mosques in New Zealand that killed 50 people last month.

New Zealand shootings: Victims of Christchurch mosque terror attacks Show all 11 1 /11 New Zealand shootings: Victims of Christchurch mosque terror attacks New Zealand shootings: Victims of Christchurch mosque terror attacks Zakaria Bhuiyan People gather hoping to find out information about Zakaria Bhuiyan who is still missing after the mosques shootings in Christchurch. David Moir/AFP New Zealand shootings: Victims of Christchurch mosque terror attacks Mucad Ibrahim Three-year-old Mucad Ibrahim, the youngest known victim of the mass shooting at two mosques in Christchurch, New Zealand, on 15 March 2019. Abdi Ibrahim via AP New Zealand shootings: Victims of Christchurch mosque terror attacks Nadeem Rasheed Nadeem Rasheed, brother of Pakistani Naeem Rashid who died alongside his son Talha Naeem, 21, who were killed in shooting at a Mosque in Christchurch, at their home town in Abbottabad, EPA New Zealand shootings: Victims of Christchurch mosque terror attacks Omar Nabi Omar Nabi speaks to the media about losing his father Haji Daoud Nabi, 71, in the mosque attack REUTERS New Zealand shootings: Victims of Christchurch mosque terror attacks Ash Mohammed Ash Mohammed, right, talks to a police officer about his father and two brothers who are missing near the Masjid Al Noor mosque AP New Zealand shootings: Victims of Christchurch mosque terror attacks Akhtar Khokhur Akhtar Khokhur, 58, shows a picture of her missing husband Mehaboobbhai Khokhar, 65. AP New Zealand shootings: Victims of Christchurch mosque terror attacks Wasseim Alsati A note is seen on a window of a door at the family home of Wasseim Alsati in Christchurch on 17 March 2019. AFP/Getty Images New Zealand shootings: Victims of Christchurch mosque terror attacks Haroon Mahmood Relatives offer condolences to nephew (centre) of Haroon Mahmood, a Pakistani citizen who was killed in Christchurch mosque shootings. AP New Zealand shootings: Victims of Christchurch mosque terror attacks Farid Ahmed Farid Ahmed (pictured) survived the Al Noor mosque shootings but his wife Husne was killed. AFP/Getty Images New Zealand shootings: Victims of Christchurch mosque terror attacks Syed Areeb Ahmed A relative shows a picture of Syed Areeb Ahmed, a Pakistani citizen who was killed the Christchurch mosque shooting. AP New Zealand shootings: Victims of Christchurch mosque terror attacks Naeem Rashid A relative looks at a picture on a mobile phone of Pakistani nationals Naeem Rashid and his son Talha Naeem (right) who died in the Christchurch shootings. AFP/Getty Images

He allegedly bought parts, including nails, for an improvised explosive device that would be remotely triggered, but in fact contained inert materials, FBI agent Tasha Coolidge said in an affidavit filed in US District Court in Los Angeles.

Women in New Zealand wear headscarves to show solidarity with Christchurch shooting victims

If they survived the planned bombing at Bluff Park, Mr Domingo discussed launching further attacks on the ports of Long Beach and Los Angeles or on a train, the papers said.

White nationalists never showed up to the planned event in Bluff Park, but a large group of counter protesters demonstrated.

A message left on a phone listed for Mr Domingo was not immediately returned.