Four people were killed and at least 20 others were injured after gunfire erupted at a busy eatery in South Carolina.