An American avionics technician was arrested on Friday as part of an FBI sting after he drove a vehicle loaded with what he thought were explosives to a Wichita airport.

Authorities said the planned assault by Terry Lee Loewen at Wichita's Mid-Continent Regional airport was to demonstrate his support for al-Qa'ida.

Loewen, 58, who worked at the airport for Hawker Beechcraft, was arrested before dawn as he tried to drive into the tarmac. The materials in the car were inert, and no one at the airport was in any immediate danger, authorities said.

Download the new Independent Premium app Sharing the full story, not just the headlines

Loewen planned to die in the explosion in his quest to become a martyr in a jihad against America, according to court documents.

Police said they had been investigating Loewen, of Wichita, for approximately six months after he made statements online about wanting to commit "violent jihad" against the United States, US Attorney Barry Grissom said. Eventually, an undercover FBI agent befriended Loewen, striking up conversations about terrorism and Loewen's admiration for those who plotted violence against American interests.

Authorities said Loewen spent months studying the layout of the airport, its flight patterns and other details to maximize fatalities and damage in an attack. During that time, he developed a plan with other 'conspirators' to use his employee access card to pull off the attack, who were actually undercover FBI agents.

Loewen made an initial court appearance on Friday afternoon, answering "yes" to various procedural questions. A US magistrate ordered that Loewen is detained until a hearing next Friday after prosecutors said he was a flight risk and a danger to the community.

Authorities said they believe Loewen acted alone. No other arrests are expected. His wife and attorney declined comment after the hearing.

Wide use of FBI sting operations has prompted frequent controversy over balancing the needs of law enforcement and civil liberties. One involved an undercover agent pretending to be a terrorist who provided a teenager with a phony car bomb, watched him plant the bomb in downtown Chicago and press a trigger.

Civil rights groups have criticised such tactics and argued the FBI is systematically violating peoples' constitutional rights by luring targets into committing crimes. The FBI however argues such operations are a vital law enforcement tool that has averted potentially deadly terrorist attacks.

Daily coronavirus briefing No hype, just the advice and analysis you need Enter your email address Continue Continue Please enter an email address Email address is invalid Fill out this field Email address is invalid Email already exists. Log in to update your newsletter preferences Register with your social account or click here to log in I would like to receive morning headlines Monday - Friday plus breaking news alerts by email Update newsletter preferences

Investigators said Loewen also frequently expressed admiration for Anwar Al-Awlaki, the American-born al-Qa'ida leader who was killed in a 2011 drone strike in Yemen. Al-Awlaki emerged as an influential preacher among militants living in the West and called for jihad, or holy war, against the US during his English language Internet sermons.

In August, an undercover agent offered to introduce Loewen to someone who could help him engage in jihad. A few days later, he mentioned providing a "tour" of the airport for one of the undercover agents.

In September, the undercover agent told Loewen he had returned from overseas after meeting with individuals connected with al-Qa'ida. The agent told him the "brothers" were excited to hear about his access to the airport and asked Loewen if he would be willing to plant some type of device, according to court documents.

"Wow! That's some heavy stuff you just laid down. Am I interested? Yes. I still need time to think about it, but I can't imagine anything short of arrest stopping me," Loewen told the agent, adding that he needed to let Allah guide him.

The documents allege that he also asked for reassurances that he wasn't being set up, saying his greatest fear was not completing the operation.

The criminal complaint also details a meeting in November with other undercover agents in which they discussed executing the plan prior to Christmas in order to cause the greatest physical and economic damage. He also provided components from his employer that the agents requested to wire the fake explosive device, according to court documents.

On Wednesday, Loewen met with another undercover agent and helped assemble the false bomb, court documents allege.

Loewen was charged with attempting to use a weapon of mass destruction, attempting to damage property and attempting to provide support to terrorist group al-Qa'ida.

Hawker Beechcraft spokeswoman Nicole Alexander confirmed Friday that Loewen worked at the company's aircraft maintenance facility at the airport, but she said he has been suspended amid the investigation.

Additional reporting by Associated Press