Officials have struggled to provide oversight of the agency, even as local communities and civil rights groups have documented episodes of violence.