WASHINGTON — A former U.S. Army soldier who was court-martialed for fatally shooting a handcuffed civilian in Iraq two decades ago was sentenced on Monday to more than four years in prison for his role in the attack on the U.S. Capitol on Jan. 6, 2021.

Edward Richmond Jr. attacked police officers with a metal baton during the Jan. 6, 2021, riot at the Capitol. Richmond, 41, of Geismar, Louisiana, said he immediately regretted his actions that day.

“It was wrong. It was foolish. It was not thought-out. It was spur of the moment,” Richmond said before U.S. District Judge John Bates sentenced him to four years and three months behind bars.

The judge said Richmond appeared to be genuinely remorseful for joining one of the most violent episodes of the Capitol riot — a clash between rioters and outnumbered officers inside a tunnel entrance.

“Your conduct was pretty terrible. You’ve recognized that,” Bates said.

More than 1,500 people have been charged with federal crimes stemming from the Capitol riot. More than 650 of them have been sentenced to terms of imprisonment ranging from a few days to 22 years.

Several Jan. 6 riot defendants have asked judges to pause their cases until after President-elect Donald Trump takes office, citing his campaign vow to pardon supporters who stormed the Capitol after his “Stop the Steal” rally near the White House on Jan. 6. Judges have largely rejected those requests and forged ahead with plea hearings and sentencings as scheduled.