Ex-Official Accused of Spying Pleads Guilty