The US president's comments come after Israel said it had killed Iran's security chief Ali Larijani in a strike.