A SpaceX rocket failed on a Cape Canaveral launch pad Thursday, shaking nearby buildings and spewing smoke upward.