New York State Police identified the man shot by police in an apparent "suicide by cop" incident.

Officials say 53-year-old Richard Dinneny showed up at his ex-girlfriend's house on Overlook Drive in Middletown drunk and threatened to kill her. The woman then called 911.

NBC reports, Dinneny then also called 911 and told the dispatcher that he forced his way into the home, he wanted to die, and would kill any police who responded.

When Middletown Police arrived, they found Dinneny outside the home with a weapon.

Police ordered him to drop the gun several times. When he refused two responding officers, both with over 10 years of service, fired several shots, hitting and killing Dinneny.

Dinneny’s weapon turned out to be a black pellet gun that resemble a semiautomatic pistol, ABC reports.

Dinneny was under an order of protection that prohibited him from being in the presence of his ex-girlfriend or from entering the residence on Overlook Place.

Dinneny previously served nearly 20 years in prison for a 1985 manslaughter conviction.