FLORENCE, S.C. (CBS News) — Seven law enforcement officers were shot Wednesday in Florence, South Carolina, and a suspect is in custody, according to a city spokesman.

During an emotional press conference Wednesday night, officials said they were attempting to serve a search warrant when a suspect opened fire from within a residence.

READ MORE: UPDATE: All Lanes of Westbound I-580 In Oakland Reopen Following Police Activity

Three deputies were shot and city police responded to the scene where four additional officers were wounded, one fatally. A 2-hour standoff ensued as the suspect was barricaded inside with children. The suspect is in custody, but details weren’t immediately released on how the standoff ended.

READ MORE: Oakland School Board Discusses Reinstating Popular Police Mentoring Program

South Carolina Gov. Henry McMaster posted on Twitter that Wednesday’s incident is “simply devastating” and called out the “selfless acts of bravery from the men and women in law enforcement.”

MORE NEWS: Supply Chain Crisis: Shipping Industry Leaders Meet In San Francisco, Warn Backlog To Stretch Long Past Holidays

The Florence County Emergency Management Department tweeted earlier that an “active shooting situation” was over and officials urged people to stay away from the area.

The Bureau of Alcohol, Tobacco, Firearms and Explosives said special agents are assisting in the incident.

Authorities said the shooting took place in Vintage Place, an upscale neighborhood in the western part of the city. Florence is about 70 miles northwest of Myrtle Beach and The Associated Press reports that it’s home to roughly 37,000 people, sitting at the convergence of Interstates 95 and 20. It’s the largest region known as the Pee Dee, an area recently affected by heavy flooding in the wake of Hurricane Florence.

This is a developing story. Check back for latest updates.