Turkish President Erdogan warns against actions that could damage centuries-old ties with Iran