An unmanned SpaceX rocket self-destructed shortly after launching on a test flight at a Central Texas development site, the company said Friday.