In this case, "did" is a way of avoiding repetition. Some simpler examples will make it clearer:
"Did you bring your coat?"
"Yes, I did." (= "Yes, I did bring my coat." / "Yes, I brought my coat.")
"Did the plane head south?"
"Yes, it did." (= "Yes, the plane did head south." / "Yes, the plane headed south.")
Now we can look at your sentence:
...when a plane leaves the airport heading to the south, as the plane that crashed did...
= when a plane leaves the airport heading to the south, as the plane that crashed headed to the south,...
But that sounds pretty awkward because of the repetition. Anyway, the phrase "as the plane that crashed did" refers to the fact that "the plane that crashed" left the airport heading to the south.