Pakistan registers first win by defeating China