The New England city announced it was ending its partnership with the surveillance technology company after discovering a controversial feature had been turned on.