Man loses life in train accident