In resuming its ballistic testing activity after a yearlong pause, North Korea has demonstrated a potentially nuclear-capable weapon that shows how it continues to expand its military capabilities amid a stalemate in diplomacy with the United States.