Terrorism in Afghanistan has gone from "bad to worse" after the withdrawal of the US troops, China has said and asked the country's Taliban rulers to deliver on its pledge to rein in terrorist groups which pose problems for neighbouring countries, especially its close ally Pakistan.