A Vietnam veteran who bragged online about maintaining his target-shooting skills is being held after seven law enforcement officers were shot in South Carolina, with one killed.

Authorities said Frederick Hopkins opened fire when deputies tried to serve a search warrant at his home.

They added he held children hostage while shooting long-range from the property at other officers who rushed to the suburban neighbourhood.

The sheriff department’s armoured personnel carrier was brought in to recover the wounded during Wednesday’s two-hour standoff in Florence, and the gunman finally released the children as he was taken into custody.

“Officers went there unknowing the firepower the suspect had,” Florence County Sheriff Kenney Boone said at a news conference.

“Fire was being shot all over. The way this suspect was positioned, his view of fire was several hundred yards. So he had an advantage. The officers couldn’t get to the ones who were down.”

Records show Hopkins, 74, is a disabled Vietnam veteran and disbarred lawyer who has faced several charges in recent years, including a 2014 count of disorderly conduct.

Authorities have not described what weapons were involved, but Hopkins apparently owned several guns.

A 2014 post on his Facebook page said he celebrated his 70th birthday at a shooting range by repeatedly firing his M-14 rifle, set up exactly like the one he used in Vietnam.

“I have been shooting competitively since 1984 and lovin’ it. I just love the smell of gunpowder in the mornin’s,” said the post.

Other posts from 2016 show images of rifles set up on what looks like a range and say he was the “South Carolina 3-Gun Silhouette Champion for 2011.”

The violence stunned people in the area, where many have been dealing with record flooding from Hurricane Florence.

Both the sheriff and police chief cried as they spoke to reporters after the standoff.

The officer killed, 52-year-old Terrence Carraway, of Darlington, had just been honoured for 30 years of service with the Florence Police Department.

“I want you to pray for the family who lost the bravest police officer I have ever known,” said his chief, Allen Heidler.

WIS-TV reported Florence County Chief Deputy Glenn Kirby said Hopkins was in hospital with a head injury and unable to speak with officers.

Mr Kirby also said the search warrant involved an accusation a 27-year-old person at the home sexually assaulted a foster child who lives there.

Three Florence County deputies were wounded while trying to serve the warrant about 4pm on Wednesday.

Officers from all over arrived to help and the suspect ultimately shot four Florence city police officers, one fatally, Mr Heidler said.

Florence County officers
Florence County Sheriff Kenney Boone, police chief Allen Heidler and chief deputy Glenn Kirby (Jeffrey Collins/AP)

Mr Boone credited his department’s military equipment for enabling them to pull the wounded from the field of fire.

“Thanks to our MRAP, armored personnel carrier, we made sure all the officers that were shot were protected and brought for medical attention,” he said.

Officials did not identify the wounded officers or describe their conditions.

Florence, a city in South Carolina’s northeastern corner home to roughly 37,000, sits at the convergence of Interstates 95 and 20.

It is the largest city in the region known as the Pee Dee, where flooding from Hurricane Florence devastated areas to the east and south.

Byron Black, who lives near the subdivision where the shooting happened, said he was shocked by the violence.

He said he knew both the officer killed and the children of the suspect, describing the Hopkins family as “good people”.

“You never know how stuff will happen,” he said.

He said Mr Carraway, his youth football coach in the late 1990s, was a down-to-earth community leader with whom young people felt comfortable discussing their problems.

“If you got in trouble, he would try his best to get you out of it or tell you the steps you need to take to get out of it.

“He was one of the good cops.”

Condolences and outpourings of support rolled in.

President Donald Trump tweeted his “thoughts and prayers,” saying “We are forever grateful for what our Law Enforcement Officers do 24/7/365.”

“This is simply devastating news from Florence,” said Governor Henry McMaster, who also ordered flags around the state to half-mast.

“The selfless acts of bravery from the men and women in law enforcement is real, just like the power of prayer is real.”

This is the second shooting of multiple police officers in South Carolina this year.

In January, a 47-year-old former banker shot four officers in York County, killing one, after his wife called 911 to report he beat her.

Christian McCall pleaded guilty and was sentenced to life without parole.