But Ayatollah Ali Khamenei suggested Tehran is carefully weighing up its response.