China’s government has said that Afghanistan and Pakistan agreed not to escalate their conflict and to “explore a comprehensive solution” after several weeks of cross-border fighting between the two countries that has left hundreds of people killed