Riot police attacked in Ayrshire village