China has warned that a United States missile system planned to be set up on South Korea’s soil would harm its security.