Pictures showed Lopes, 35, looking anguished in handcuffs as he was led to an armoured vehicle by heavily-armed police following his arrest at around midnight on Wednesday.
Brazilian police said the man driving the car had claimed to be a Congolese diplomat in an attempt to avoid the vehicle being searched before the occupants offered a bribe of one million Brazilian reais (£357,000) for police to let them go.
Residents of Rocinha and wealthy neighbouring districts alike were gripped by fear amid concerns that the operation could lead to open street battles between police and criminal gangs armed with machine guns, assault rifles and grenades.
Twelve families were reportedly forced from their houses in the night by gang members who wanted to use them as hideouts, while children who attend schools in the area were being excused from lessons.