ROCK SPRINGS, Wyo. (AP) — A southern Wyoming man who fatally shot his girlfriend has pleaded guilty to involuntary manslaughter.

Stephen Taranovich, 42, struck a deal with prosecutors and pleaded guilty Tuesday in the Jan. 28 death of 43-year-old Danielle Martin. He is scheduled to be sentenced Tuesday.

Taranovich, who was facing a charge of second-degree murder, told investigators he unintentionally shot Martin in the head when he took a .40-caliber handgun out of his back pocket to clean it. He could be sentenced to life in prison because he has three prior felony convictions.