A train driver has been killed and 16 people are injured after a French train collided with a truck carrying military equipment.