Despite tensions, Trump expressed optimism that the Iran conflict would resolve quickly as diplomatic contacts continued