A train carrying thousands of gallons of fuel has hit a herd of wild elephants in north-east Sri Lanka, killing two and injuring another as two of its tankers were derailed, authorities said.