North Korea's second attempt to launch a spy satellite into orbit failed.