The man’s detention drew a crowd of protesters outside a hospital in the Bushwick neighborhood of Brooklyn.