The spacecraft’s engines shut down, and contact soon was lost. SpaceX says it will take time to figure out what went wrong.