The incident occurred in Kilmarnock, East Ayrshire, on Thursday afternoon.