CAIRO — Turkey’s president said Saturday that his country would do “whatever is necessary” in response to the downing of a Turkish military jet by Syria, adding a new complication to the tense relationship between the former allies split by Turkey’s support for Syrian rebels trying to overthrow the government.