A detached electrical connector on the second stage of Rocket Lab’s Electron rocket caused a failure on a July 4 mission that destroyed seven small commercial satellites, but the company said Friday it is on track to resume launching before the end of August.