An expert on artificial intelligence and robotics said it was likely the U.S. and Israel had used AI to identify targets in Iran, raising a host of moral and legal questions.