Tehran has warned Israel of a "painful" response to the attack, as president Donald Trump insists a deal between the US and Iran is "very close".