The accident occurred late Sunday after one of the passenger trains overshot a signal between the towns of Alamanda and Kantakapalle in Andhra Pradesh state.