Updated

A Morrocan-born man charged with plotting a suicide bombing inside the U.S. Capitol waived his rights Wednesday to preliminary and detention hearings.

Amine El Khalifi, of Alexandria, Virginia, was arrested Friday and charged with attempting to use a weapon of mass destruction. He was ordered held pending indictment. Federal court documents say El Khalifi is a native of Morocco who has been living illegally in the United States for more than a decade.

Authorities say the 29-year-old man discussed plans to attack an Alexandria office building and a synagogue with an undercover FBI operative he thought was a member of al-Qaida. Later, El Khalifi allegedly volunteered to wear a suicide vest and to kill himself in a martyrdom operation at the Capitol.

His arrest came after a lengthy FBI investigation.

El Khalifi went as far as to don a suicide vest provided to him by the undercover operatives before he was arrested on Friday, according to an FBI affidavit. The suicide vest turned out to be inert, and a gun that had been provided to him to shoot his way past security guards also was inoperative. Officials say the public was never in danger.

According to court papers, El Khalifi told his supposed co-conspirators that he would be happy if he could kill 30 people in the attack.

It is not entirely clear how El Khalifi came to the attention of authorities. Court papers state only that a confidential source reported El Khalifi to the FBI in January 2011 after he allegedly met with others at an Arlington, Virginia, residence and told others that the group needed to be ready for war, and that he agreed with others who believed the war on terror to be a war on Muslims.

One individual at that meeting produced what appeared to be an AK-47 rifle.

El Khalifi, who is being represented by the federal public defender, faces up to life in prison.