The shift has brought agents trained to spot illegal border crossings into densely populated neighborhoods Ò€ sometimes with military-style tactics that lead to violent confrontations.