A crash between a train and a car has left two people dead.