North Korea's launch of what was claimed to be a rocket carrying a spy satellite ended in failure Wednesday, drawing a swift rebuke from the United States and its regional allies for the use of ballistic missile technology.