LINCOLNVILLE, S.C. (WCBD) – A man has been taken into custody and a 3-year-old child is safe following an overnight standoff in Lincolnville.

Deputies with the Charleston County Sheriff’s Office responded to a barricaded subject on Pickens Street after receiving a call Tuesday around 6:20 p.m.

SWAT, EMS, and deputies were still on the scene trying to negotiate with the subject as of 11:00 p.m.

“Deputies spoke with the man through a door and later by phone, but he refused to come out. When he eventually emerged, he was carrying various types of firearms,” said officials with CCSO.

Deputies used a loudspeaker to talk to the subject and deployed a drone to try and get a better look at the house in question. The street was blocked off as far as a quarter-mile down the road.

During the hours-long standoff, deputies said the subject fired a gunshot but there were no reported injuries. They also said a child was believed to be inside the home.

Ricardo Cole Ray

“Several times throughout the evening, the man came out with a firearm before retreating inside. He made threats to shoot law enforcement officers. At one point, he fired a gunshot behind the home toward SWAT deputies, though no one was struck,” officials said.

Deputies said two flashbangs were used outside the home during the standoff.

Officials said the man released the child to SWAT team members. They said she was not injured.

The suspect, 28-year-old Ricardo Cole Ray, surrendered to law enforcement peacefully. He was taken to the Charleston County Detention Center where he will face charges of unlawful conduct toward a child and first-degree assault and battery.

“The charges are related to the discharge of a firearm near the child and the deputies,” officials said.

The man was taken into custody around 7:10 a.m. and deputies said the child inside the home was safe.