The man involved in a shootout with Plymouth police after he killed his fiancée died from a self-inflicted gunshot wound to the head, according to the Hennepin County medical examiner’s office.

Corey Perry, 28, ran down and fatally shot 28-year-old Trisha Nelson, his partner of about seven years, at a busy intersection as terrified witnesses looked on last Friday night.

Perry then retreated to his apartment building in the 5200 block of Annapolis Lane, where he and Nelson had lived together.

After barreling into the parking garage, Perry crashed into parked vehicles, pointed a gun at fellow residents, and exchanged gunfire with police officers, during which he was killed.

Officer Steve Larson, who has been with department since 2005, and officer Quincy Grabau, who joined the department in 2013, are currently on paid administrative leave, a standard practice in police involved shootings.

One of the officers suffered minor injuries, but has since been released from the hospital.

Nelson died from “complex homicidal violence” stemming from multiple gunshot wounds and sharp-force injuries, according to the medical examiner.