Capitol rioter Garret Miller claims that he was effectively following former U.S. President Donald Trump's order when he joined the violent riot that enveloped the U.S. Capitol on Jan. 6.

Miller was charged with invading the Capitol and threatening Rep. Alexandria Ocasio-Cortez. Miller is set to appear at a detention hearing in federal court in Dallas.

He also apologized to AOC for writing "Assassinate AOC" in a Twitter post, saying that he would be willing to testify to Congress or a trial about the riot, according to a CNBC News report.

The suspect is facing charges of knowingly entering or remaining in any restricted buildings or grounds without lawful authority.

The Texas man is also charged with violent entry and disorderly conduct on Capitol grounds, obstructing or impeding any official proceeding, among others, according to a Radio.com report.

Miller's attorney issued a statement suggesting that Miller was taking orders from Trump, who earlier claimed that the election was rigged and stolen from him.

Related story: Fact Check: Was Chuck Norris at Capitol Riot? Actor Speaks Up After Alleged 'Selfie' With Protesters Went Viral

Miller's Arrest

The Federal Bureau of Investigation said that it confirmed Miller's identity through a subpoena of AT&T, which confirmed his Twitter account was connected with his cellphone number.

The agency also confirmed that his Facebook account was associated with the same phone number and Twitter account, according to a Meaww report.

One of the commenters on his Facebook account tried to pin the riot to "paid infiltrators." Miller allegedly replied to the commenters statement, "Nah we stormed it."

The FBI complaint contained several still photos from a security camera video showing Miller being part of the crowd that pushed pass the officers to storm in the Capitol.

The FBI also claimed that Miller threatened to kill the police officer who killed Babbitt on social media, allegedly posting on Jan. 10 that they were going to get a hold of him and hug the police officer's neck with a nice rope.

Miller is represented by Clinton Broden. Broden said that Miller regrets and takes responsibility for his actions.

His lawyer added that Miller's actions were a misguided effort to show his support of Trump. Broden added that he does not believe there is evidence that his client planned to carry out the threats.

"His social media comments reflect very ill-considered political hyperbole in very divided times and will certainly not be repeated in the future. He looks forward to putting all of this behind him," Broden was quoted on a report.

Capitol Police Investigation

Meanwhile, the Capitol Police are conducting a probe into whether members of Congress inappropriately gave visitors access to the Capitol a week before the breach.

Former Vice President Mike Pence called Vice President Kamala Harris to offer assistance, according to a New York Times report.

Several lawmakers expressed concerns that their colleagues might have allowed some members of the mob inside before the Capitol breach.

House Speaker Nancy Pelosi had named Russel L. Honoré to lead security of review of the Capitol in the wake of the riot. Honoré is a retired Army lieutenant general.

Related story: McEnany: Trump Condemns Violent Riot at U.S. Capitol