Guard Markers are removed when the creature is targeted by a melee attack, regardless of if the attack resolves or not. So he loses his guard token when he is targeted, then attempts his defense roll and so on from then on.