A video posted on social media showed what appeared to be the front of one train entangled with the back of another, with both still on the tracks.