North Korea said it tested a new solid-fuel rocket engine, which could improve its capacity for surprise attacks—the latest in a series of announcements apparently aimed at showing progress toward a nuclear missile that could threaten the U.S. mainland.