Saudi Arabia and Qatar, well-known for their roles in mediating conflicts, urged restraint from both Pakistan and Afghanistan.