RIO DE JANEIRO — In a quick and decisive military sweep, Brazilian security forces seized control of this city’s most notorious slum on Sunday, claiming victory in a weeklong battle against drug gangs that has claimed dozens of lives.