His practice swing knocked the ball off the tee, which then hit the tee marker and came to rest about 10 feet in front of him.
I always thought that if you accidentally knocked the ball off the tee on a practice swing, or accidentally knocked the ball off the tee when you rested the club behind the ball, it was a stroke. Apparently it isn't.