China has praised Pakistan’s “restraint” and willingness to talk with India to ease tensions between the two countries after a deadly bombing in Indian-controlled Kashmir last month.