WASHINGTON — A man charged with trying to assassinate President Barack Obama has pleaded not guilty.

Oscar Ramiro-Ortega Hernandez made a brief appearance with his public defender Tuesday in U.S. District Court in Washington. He was indicted last week.

Ortega is accused of firing shots at the White House on the night of Nov. 11. Obama and his wife Michelle were not home at the time.

Ortega was arrested several days after the shooting in Pennsylvania.

The indictment includes charges of attempting to assassinate the president, transporting a firearm across state lines and assaulting a United States employee with a deadly weapon.

Prosecutors say Ortega harbored conspiracy theories and fantasies of killing the president.

Ortega did not speak in court Tuesday. He is scheduled to make another appearance next month.