Write SQL query to solve given problem: Of all male officers, what percentage are black officers?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(SUM(race = 'B') AS REAL) * 100 / COUNT(case_number) FROM officers WHERE gender = 'M'