Violence during Rio Carnival spotlights security woes