The boy allegedly stabbed a female Coles worker with a knife before being apprehended by members of the public.