China urges restraint after North Korea nuclear threat