It seemed like a stunning moment, even for the unpredictable Musk.