Two men were killed and at least four other people were wounded in a shooting early Sunday morning at a bar in South Carolina, according to the authorities.

The shooting took place at Mac’s Lounge in Hartsville, according to the Darlington County coroner, Todd Hardee.

“A person did all this shooting,” Mr. Hardee said in an interview. “We are still trying to figure it out.” The two men died at the scene, he said.

The authorities said on Monday that two people had been arrested in connection with the shooting.

One man, Darius Grant Dickey, was charged with four counts of attempted murder and several other charges, said Lauren Baker, a spokeswoman for the Hartsville Police Department. A judge denied bail for him, she said.