A passenger train derailed on Friday in Spain's northwestern Galicia region, killing at least four people and injuring 47 others who were taken to hospitals, authorities said.