President Recep Tayyip Erdogan says Turkey has a duty to defeat the Islamic State extremist group, adding its operation inside Syria is a first step towards this goal.