An armed suspect was taken into custody today after a four-hour-plus standoff with police in Long Beach.

Long Beach Police Department officers responded at approximately 11 p.m. Tuesday to West Sixth Street and Daisy Avenue regarding an armed suspect who had barricaded himself inside a nearby apartment, ABC 7 reported. A SWAT team was called to the scene and officers surrounded the building as another team tried to negotiate the suspect’s surrender.

According to reports from the scene, police evacuated the building and then deployed a flashbang device.

Monsor Middelton, who lives across the street from the apartment building where the suspect was barricaded, heard the flashbang from his apartment.

“It sounded like a bomb went off,” he said. “It was very tense.”

SWAT officers then took the suspect into custody around 3:30 a.m. Wednesday, ABC 7 reported.

The suspect was wanted in connection with a domestic violence incident, the TV station reported.