A deputy working security at a gun show in South Carolina fatally shot someone who fired on him Saturday, authorities said.