SIOUX FALLS, S.D. (AP) — Police say a man shot by an officer in Sioux Falls earlier this month has been released from the hospital and taken to jail.

Authorities say 29-year-old Trent Wagner, of Baltic, threatened people with a gun at a home in Sioux Falls on Oct. 6. Officers found him at a nearby home and chased him on foot. Police say Wagner showed his gun and was shot by an officer.

He was released from the hospital Thursday and taken to the Minnehaha County Jail where he’s being held for aggravated domestic assault.