A seventh U.S. service member has been killed in the war in Iran as the country chose its new supreme leader.