A Chinese ministry official has been sentenced to death for spying after being groomed and blackmailed into handing over dozens of state secrets to a foreign intelligence agency, according to a rare public disclosure by Beijing’s state secrecy apparatus.