Experts say the war in Iran is testing questions of what artificial intelligence should be used in warfare and who should control it.