Iran said it executed a 29-year-old aerospace engineer convicted of collaborating with Israel’s Mossad and the CIA by sharing classified information.