Dog dirt has been at the centre of an ‘incident’ in a North Yorkshire village, say police.