Officials say the train had been transporting military personnel home for Eid when it was attacked by armed separatists.