Iran’s top diplomat and Pakistani officials have discussed the ceasefire in the war with the United States and Israel.