Foreign Minister Wang Yi’s remarks came as Israel appeared poised for a ground offensive against Hamas militants in Gaza.