Turkey extends military mandate in Syria, Iraq