Turkey will not refrain from “teaching a lesson” to Gen. Khalifa Haftar if his eastern Libyan forces continue attacks against the country’s internationally recognized government, President Recep Tayyip Erdoğan said on Tuesday, Reuters reported.

He said Haftar had “run away” from Moscow after Monday’s peace talks between him and the head of the Tripoli-based government, Fayez al-Sarraj, failed to lead to an open-ended ceasefire to end their nine-month conflict.

“If the putschist Haftar’s attacks against the people and legitimate government of Libya continue, we won’t refrain from teaching him the lesson he deserves,” Erdoğan said in a speech to his ruling Justice and Development Party (AKP) deputies in parliament.

“It is our duty to protect our kin in Libya,” Erdoğan added, saying that Turkey had deep historical and social ties with the North African country and that Haftar would have taken over the entire nation if Ankara had not intervened.

He said Turkey will join Germany, Britain and Russia at a summit that Chancellor Angela Merkel is to host in Berlin on Sunday to discuss Libya, which has been mired in chaos since the toppling of Muammar Gaddafi in 2011.

Al-Sarraj signed the ceasefire agreement, but Haftar left Moscow without signing the accord, the TASS news agency cited the Russian Foreign Ministry as saying on Tuesday.