Army to take control of security in Rio de Janeiro