Erdogan: Turkey will not leave Syria until an election is held