Two individuals who spied for Mossad in Iran have been executed.