Military police in Rio say they've "won" the fight against drug gangs in the city's favelas.