Erdogan says Turkey defended 'security, brothers’ rights'