Boy, 10, thwarts robbery attempt