Just leave a comment on the post, indicating that it is a duplicate. (The answer has been deleted in the meantime.) In any case, flags cannot be retracted or changed, so your flag will eventually be disputed or declined. This happens from time to time, but it is not the end of the world. As long as you keep your percentage of declined flags lower than 10% of your total flags, you won't even notice.