MUNNSVILLE, N.Y. -- A Madison County man was arrested late Saturday after allegedly shooting a rifle inside a home after a dispute with his ex-girlfriend, according to the Madison County Sheriff’s Office.

Deputies arrived at an apartment at 5287 North Main Street in Munnsville around 11:46 p.m. regarding a man who made suicidal threats and was armed with a gun. The man, identified as Alexander Wing, 53, fired off one round inside the apartment before deputies arrived, according to a news release.

Deputies learned Wing was involved in a domestic dispute with his ex-girlfriend. He became upset and shot his rifle, deputies said.

A sheriff’s office negotiator arrived and contacted Wing. After several attempts, the negotiator successfully convinced Wing to safely leave his apartment.

Wing was charged with reckless endangerment, a misdemeanor. He was taken for medical treatment.