Cosmic 'tug-of-war' between galaxies created a tidal tail of whipped-away stars