China's foreign minister, Wang Yi, has said the country will "resolutely counter" the US.