MINNEAPOLIS (WCCO) — Dustin Bilderback, 34, pleaded guilty Monday to two counts of first-degree attempted murder in connection with the shooting of two South St. Paul police officers two summers ago.

The Dakota County Attorney’s office says Bilderback was living in a supportive housing group home for people suffering from mental illness. Officers were called to the building on July 19, 2018 for a welfare check on Bilderback.

READ MORE: Antoine Suggs Charged With Murdering 4 Minnesotans Found Dead In Wisconsin Cornfield

Dustin Bilderback (credit: Dakota County Sheriff’s Office)

The criminal complaint says Bilderback and his caseworker were standing outside. The officers and the caseworker started to discuss whether or not to place him on a 72-hour mental health hold, while Bilderback started walking to his car in the parking lot. An officer followed him.

READ MORE: Minneapolis To Return To Charging Shoppers For Using Disposable Bags

Bilderback reached into the back seat of his vehicle, pulled out a shotgun and fired six rounds at the officers, striking two of them. Two officers fired back, but didn’t hit Bilderback. He eventually dropped the shotgun and surrendered.

Both officers survived. One suffered wounds to his back, arm and next, and the other was struck in the leg.

MORE NEWS: Wife Of Iron Range Lawmaker Charged With Domestic Assault

Bilderback will be sentenced on the morning of January 7, 2020.