CASPER, Wyo. (AP) — A Casper police officer who was shot multiple times in a deadly gunfight will retire from the department at the end of the month.

Jacob Carlson, 27, is retiring to focus on his health and his family, saying "both my physical and mental health have steadily declined."

Carlson was wounded in a May 6 shootout with 38-year-old David Wolosin, who was shot and killed during the encounter. The officer received more than 100 units of blood and underwent multiple surgeries.

Prosecutors have since determined that actions by Casper police during the shooting were justified.

Carlson says he considered retiring last summer but decided not to. In December, he went on a ride-along with a friend from the department and had decided to retire by the time the shift was over.