Kim Potter, the former Minnesota police officer who shot and killed Daunte Wright during a traffic stop, has been found guilty. A Minnesota court made the ruling on Thursday.

According to CNN, Potter was found guilty on first-degree manslaughter and second-degree manslaughter charges in the shooting of Wright. Jurors reached the decision after deliberating for about 27 hours over four days. 

Potter and Anthony Luckey, an officer in training, stopped Wright on April 11 while he was driving with his girlfriend, Alayna Albrecht-Payton. The 20-year-old driver was accused of having expired license tags and hanging an air freshener from his rearview mirror, which is against the law in Minnesota.

While stopping Wright, the officers discovered a warrant he had received for failing to appear in court on a weapons charge, NPR reports. Luckey asked Wright to exit the car, then attempted to handcuff him. But the 20-year-old tried to run back in the car. 

Potter threatened to use her Taser at that moment, but then drew her handgun and fired once. Wright was pronounced dead at the scene after the bullet passed through his lungs and heart. 

The defense team said use of force was permitted because Wright resisted arrest. They also argued that Potter was innocent because she was not consciously aware that she was holding her gun. 

Investigators reviewed footage from Potter's body-worn camera and heard her yelling, "I'm gonna tase you."

"Taser, Taser, Taser!" she said while drawing her gun.

The camera continued to record after the shooting.

"S**t. I just shot him," Potter was heard saying in the video.

Attorneys Ben Crump, Antonio Romanucci and Jeff Storms, who represent Wright's family, said the shooting was not an "innocent mistake."

"No reasonable officer can confuse their Taser for a gun, particularly a training officer who drew both of those weapons from her duty belt countless times," the attorneys said in a statement, according to USA Today. 

Tim Gannon, the Brooklyn Center police chief who resigned, described the shooting as an "accidental discharge."

Potter, who had worked with the Brooklyn Center Police Department for 26 years, was arrested three days after the shooting and charged with second-degree manslaughter. In September, prosecutors added the first-degree charge.