North Korea had said it might test another nuclear weapon at any time and a U.S. naval group neared the peninsula, possibly an American effort at strategic unpredictability by sowing doubt in Pyongyang over how Trump might respond.