I think this is a fairly known scenarios, that strategists and leaders taught well in advance with all possible and military personnel are trained on. I also read in an article that the order to shot it down came from the turkish president.
Can you link to that article?