AUSTIN, Texas (AP) — A U.S. Army sergeant was sentenced to 25 years in prison Wednesday for fatally shooting an armed man during a Black Lives Matter protest in Texas, even after the state’s Republican governor said he wanted to pardon the man.

Daniel Perry, 36, was convicted of murder in April for killing Garrett Foster during the downtown Austin protest in July 2020.

Perry’s conviction prompted outrage from prominent conservatives, and Texas Republican Gov. Greg Abbott has said he would sign a pardon once a recommendation from the Texas Board of Pardons and Paroles — stacked with Abbott appointees — hits his desk

The board is reviewing Perry’s case on the governor’s orders, but it is unclear when it will reach a decision.

Brown delivered a statement during sentencing Wednesday that didn’t address the potential pardon directly. But he insisted that Perry had a “fair and impartial trial” and that the jury’s decision “deserves our honor and it deserves to be respected.”

Perry was stationed at Fort Hood, about 70 miles (110 kilometers) north of Austin, when the shooting happened. He had just dropped off a ride-share customer and turned onto a street filled with protesters.

Perry said he was trying to get past the crowd and fired his pistol when Foster pointed a rifle at him. Witnesses testified that they did not see Foster raise his weapon, and prosecutors argued that Perry could have driven away without shooting.

Perry said he acted in self-defense. His lawyers asked the judge to consider his more than decadelong military career and hand down a sentence of no more than 10 years. He has been classified as in “civilian confinement” and is pending separation from the military, Army spokesman Bryce Dubee said.

Prosecutor Guillermo Gonzalez had urged Brown to issue a sentence of at least 25 years. The sentencing range for a murder conviction is five years to life in prison.

“This man is a loaded gun, ready to go off at any perceived threat,” Gonzalez said. “He’s going to do it again.”

On Tuesday, prosecutors submitted into evidence dozens of texts and social media posts Perry wrote, shared, or liked, including some shockingly racist images. They had been excluded from Perry’s trial but were publicly released after his conviction and allowed into the sentencing phase by District Judge Clifford Brown.

Perry, who is white, was working as a ride-share driver in downtown Austin on July 25, 2020, when he shot and killed 28-year-old Foster, an Air Force veteran. Foster, who was also white, was legally carrying an AK-47 rifle as he participated in the demonstration against police killings and racial injustice, following the killing of George Floyd, a Black man, by a white Minneapolis police officer.

Among Perry’s statements introduced Tuesday, he wrote on Facebook a month before the shooting: “It is official I am a racist because I do not agree with people acting like animals at the zoo.”

Floyd was killed on May 25, 2020. A few days later as protests erupted, Perry sent a text message to an acquaintance: “I might go to Dallas to shoot looters.”

Perry’s attorney Douglas O’Connell argued that the texts and posts were presented by prosecutors out of context and that Perry has a right to free speech.

“Some of those social media posts are frankly repugnant,” O’Connell said while classifying others as “dark humor.”

Forensic psychologist Greg Hupp testified that he believed Perry has post-traumatic stress disorder from his deployment to Afghanistan and being bullied as a child. Perry’s mother, Rachel Perry, testified that he was ostracized as a child because of a speech impediment.