Four people were killed and three others wounded Friday in a shootout between rival gangs in the eastern province of San Miguel, Salvadoran authorities said.