SIOUX FALLS, S.D. (AP) — The South Dakota attorney general says a Sioux Falls police officer was justified in shooting a fleeing suspect last month.

AG Jason Ravnsborg says a review of the Oct. 6 shooting by the South Dakota Division of Criminal Investigation found 29-year-old Trent Wagner fired a revolver at police before an officer shot and wounded him. Two police officers were responding to a 911 call reporting that Wagner had showed up at a residence uninvited and armed.

Investigators say officers who later encountered and chased Wagner on foot ordered him to drop the revolver before one fired 12 shots, hitting him three times and wounding him. The officers were not injured in the incident.

Officials say lab tests later found methamphetamine in Wagner’s system.