New Hampshire authorities say a man unhappy about his estranged wife’s relationship with another man shot and killed the couple, and then took his own life days later as investigators focused on him as the suspect.

The state attorney general’s office said Friday morning that 41-year-old Kevin Moran messaged family members Wednesday night, and then fatally shot himself in a vehicle outside of his home in Ossipee. An autopsy performed Thursday afternoon confirmed that Moran’s cause of death was a single gunshot wound and his manner of death is suicide.

Police responded to a 911 call from a single-family home at 10 Lakeview Drive in Wolfeboro on the night of Oct. 21.

Authorities said two adult residents, Kathleen Moran and Kris Dube, were found shot. Dube, 36, suffered multiple gunshot wounds and was pronounced dead at the scene; Moran, 36, was in critical condition and later died at a hospital. The medical examiner said Dube and Moran died in a double-homicide.

The attorney general’s office said their investigation revealed that Kevin Moran had previously threatened his estranged wife and Dube, and authorities had identified him early on as a suspect. Moran checked himself into a hospital on Oct. 22 and remained there until Oct. 30. He was aware that the homicide investigation was focused on him as the suspect.

Domestic violence-related homicides remain among the most prevalent in New Hampshire. The Domestic Violence Fatality Review Committee published in its latest September 2016 biannual report that of the 98 homicides in the state between 2009 and 2015, a total of 58 percent were the result of domestic violence.

Carroll County, which is home to Wolfeboro, had one domestic violence-related homicide between 2001 and 2010. In the proceeding five years, zero were reported.

 The most common cause of death is by firearm. Of the 79 domestic violence-related homicides between 2001 and 2010, a total of 48 percent were the result of a firearm, most commonly a handgun.