Five wild elephants were killed and two others injured after a train hit a herd trying to cross railway tracks in Assam.