The UK says it is "not getting drawn into the wider war" after Iran's foreign minister said he had called his British counterpart.