GREENPORT, N.Y. — It was still dark the morning of Sept. 27 when armed federal immigration agents, guided by local police officers, swept into this village on the East End of Long Island. Within hours, as the team rousted sleeping families, 11 men were added to a running government tally of arrests made in Operation Community Shield, a two-year-old national program singling out violent gang members for deportation.

“Violent foreign-born gang members and their associates have more than worn out their welcome,” Julie L. Myers, assistant secretary of Immigration and Customs Enforcement, said at an October news conference announcing the arrests of 1,313 people in the operation over the summer and fall nationwide. “And to them I have one message: Good riddance.”

But, to the dismay of many of Greenport’s 2,500 residents, the raid here did not match her words.

Only one of the 11 men taken away that morning was suspected of a gang affiliation, according to the Southold Town police, who patrol Greenport and played the crucial role of identifying targets for the operation.

The 10 others, while accused of immigration violations, were not gang associates and had no criminal records.