Iran executed a scientist accused of being a U.S. spy.