Several people have been killed in a head-on collision between two trains in the southern Italian region of Puglia, firefighters said.