Replay
Judging from the sound, it hit the pin.
Unfortunately, there's no proof of the flag's state because all replays show it "in" regardless, even on putts. (And the ball is shown "teed up" on the green BTW)
I see two alternative explanations: Either the game put it back in place unwantedly, or your PC counted two mouseclicks, thus commanding it back in.