The train plunged into a rain-swollen river in Andhra Pradesh where flash floods had washed away a portion of track .