(CNN) -- John Walker, a former U.S. Navy officer convicted of spying decades ago for the Soviet Union, has died in federal prison, according to the U.S. government.