Turkey could take military action against Israel if necessary, Erdogan warns, drawing comparisons to past interventions in Karabakh and Libya.