Federal agents detained a man on the city’s North Side on Friday, and residents emerged from their homes, yelling and blowing whistles.