Deadly Rio police operation was 'legitimate action,' official says