Federal prosecutors say an Ohio man has been arrested in a plot to attack the U.S. Capitol and kill government officials inside the building.

A criminal complaint charges 20-year-old Christopher Lee Cornell, of Green Township, with attempting to kill officers and employees of the United States.

Cornell, also known as Raheel Mahrus Ubaydah, was arrested Wednesday as he took control of a firearm during an undercover FBI operation.

It wasn't immediately clear if he had a lawyer. The FBI says the public was never in danger and he never made it to Washington.

The complaint alleges that an FBI informant began supplying agents with information about Cornell last year.

Prosecutors say he professed allegiance online to the Islamic State and spoke of plans to commit acts of jihad.