Rio de Janeiros Top Cop Resigns as Firefights Roil City