FORT WORTH, Texas (AP) — A former Texas police officer who fatally shot Atatiana Jefferson through a rear window of her home in 2019 was sentenced Tuesday to 11 years and 10 months in prison for his manslaughter conviction.

Aaron Dean, 38, had faced up to 20 years in prison, but jurors also had the option of sentencing him to probation. The same jury that convicted him of manslaughter Thursday also determined the sentence.

The white Fort Worth officer shot the 28-year-old Black woman while responding to a call about an open front door. His guilty verdict was a rare conviction of an officer for killing someone who was also armed with a gun.

During the trial, the primary dispute was whether Dean knew Jefferson was armed. Dean testified that he saw her weapon; prosecutors claimed the evidence showed otherwise.

Dean shot Jefferson on Oct. 12, 2019, after a neighbor called a nonemergency police line to report that the front door to Jefferson’s home was open. She had been playing video games that night with her 8-year-old nephew and it emerged at trial that they left the doors open to vent smoke from hamburgers the boy burnt.

The case was unusual for the relative speed with which, amid public outrage, the Fort Worth Police Department released video of the shooting and arrested Dean. He’d completed the police academy the year before and quit the force without speaking to investigators.

Since then, the case was repeatedly postponed amid lawyerly wrangling, the terminal illness of Dean’s lead attorney and the COVID-19 pandemic.

Body camera footage showed that Dean and a second officer who responded to the call didn’t identify themselves as police at the house. Dean and Officer Carol Darch testified that they thought the house might have been burglarized and quietly moved into the fenced-off backyard looking for signs of forced entry.

There, Dean, whose gun was drawn, fired a single shot through the window a split-second after shouting at Jefferson, who was inside, to show her hands.

Dean testified that he had no choice when he saw Jefferson pointing the barrel of a gun directly at him. But under questioning from prosecutors he acknowledged numerous errors, repeatedly conceding that actions he took before and after the shooting were “more bad police work.”

Darch’s back was to the window when Dean shot, but she testified that he never mentioned seeing a gun before he pulled the trigger and didn’t say anything about the weapon as they rushed in to search the house.

Dean acknowledged on the witness stand that he said something about the gun only after seeing it on the floor inside the house and that he never gave Jefferson first aid.