The railroad said a train that left New York for New Haven derailed and was then struck by a westbound train on an adjacent track.