The boy has been throwing the ball for the dog to fetch