(CNN) A South Carolina sheriff's detective died on Wednesday evening, a day after he and three other law enforcement officers were shot, officials said.

Sheriff's Detective Michael R. Doty died of his injuries, York County Sheriff Kevin Tolson said on the department's Facebook page.

A man shot the four officers early Tuesday near a South Carolina home, a sheriff's spokesman said, after deputies were called there for a complaint of domestic violence.

Christian Thomas McCall first struck one deputy near the home outside the city of York, then hit the others a couple hours later, said Trent Faris, the sheriff's office spokesman.

McCall, 47, was injured when officers returned fire during the second exchange, which ended a nearly six-hour ordeal in which officers were looking for him, Faris said.

Read More