The malfunction, the first since 2016, ended a streak of more than 300 successful launches of the Falcon 9 rocket.