US police say a rapper's "cowardly" actions in a "rival gang stronghold" led to a spate of violence.