Israel has vowed to respond to Iran's missile attack and has been in discussions with the United States about potential courses of action in recent weeks.