China refuted claims it is militarizing the disputed South China Sea, saying it needs to build facilities on artificial islands and reefs to protect them.