The warning from Turkish President Recep Tayyip Erdogan came one day after tensions between the two countries erupted into some of their deadliest clashes in years.