(CNN) Seven law enforcement officers were shot, one fatally, during a standoff Wednesday in Florence, South Carolina, city police Chief Allen Heidler said.

Florence County Sheriff's deputies were executing a search warrant when a man opened fire, said Maj. Mike Nunn, a spokesman for the sheriff's office. The man then barricaded himself in the home with children during the two-hour standoff, Nunn said.

The other officers were shot as they responded to assist their fellow officers, authorities said.

"These officers went there unknowing the firepower this suspect had. ... They thought it was a random search warrant," Florence County Sheriff Kenney Boone said.

He said the suspect was in custody.

Read More