Altering a cue balls path or stopping the cue ball before it has a chance to stop on it's own is a ball in hand foul. Of course, it was already a ball in hand foul. In a tournament you would have to have a referre witness this to have anything done about it. Always a good call to ask for a ref when a shot looks like it could result in ball in hand.