A 42-year-old man who had barricaded himself in his home with access to a shotgun ended a more than 15-hour standoff by leaving his Town of Hamburg home without further incident at mid-afternoon Monday, authorities said.

No other details were available about how the standoff ended, some time between 3 and 3:30 p.m., when the man was taken into custody.

SWAT Team members and police officers from the Town of Hamburg, Cheektowaga and the Erie County Sheriff’s Office negotiated with the man throughout the morning and early afternoon. Police have said they didn’t believe anyone else was in the residence with him.

The incident began before midnight Sunday, when the man’s girlfriend went to the Town of Hamburg police station to report that he was distraught, had access to a shotgun and had made suicidal threats.

Patrol officers responded to the residence, in the Big Tree Road-Eaglecrest Drive area, where they saw the armed man inside, set up a perimeter and called out the Town of Hamburg SWAT Team. Negotiations began and continued through mid-afternoon.

The standoff reached the 15-hour mark at about 2:40 p.m., forcing authorities to call in the Cheektowaga police SWAT Team to relieve their Hamburg counterparts.

“We’ve been negotiating with him the whole time,” Town of Hamburg Capt. Kevin A. Trask said shortly before 3 p.m. “At times, he seems to be willing to come out, and then he changes his mind.”

Town of Hamburg police, who barricaded the street, asked people to avoid going into that area if possible.