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 ([yet](http://meta.stackexchange.com/questions/87500/cancel-misclicked-flags/281010#281010)), so your flag could 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.