Elon Musk's rocket giant said one of its satellites had a "knife-edge" encounter with a rogue satellite in August.