JACKSON HOLE, Wyo. — A Wyoming man has been sentenced to life in prison after pleading guilty in the killing of his pregnant ex-girlfriend.

Erik Ohlson, of Jackson, pleaded guilty in February to the murder of Jennifer Nalley and the involuntary manslaughter of Nalley's fetus.

RELATED: Wyoming man pleads guilty to murder in Idaho

He was sentenced Friday to life in prison with a chance of parole after 25 years. The Jackson Hole News & Guide reports that Teton County District Court Judge Bruce Pickett told Ohlson that he "ruined" multiple lives.

Authorities have said Ohlson shot Nalley multiple times at her cabin in Idaho in July 2016 and was arrested after crashing his truck a few miles away.