North Korea shocked the world October 9 by detonating an underground nuclear device .