Occasional single downvotes happen to everyone; there is nothing you can do about them, nor should there be. It's best to forget them right away.
People are free to vote whichever way they want, for any reason they want, as long as there is no pattern of targeting (as in, someone downvoting a lot of your contributions specifically).
If you start getting a lot of mysterious downvotes and you suspect they all come from one user, wait 24 hours for the automated process to kick in that normally takes care of these things. If that doesn't help, flag for moderator attention.
Regarding the specific situation, I agree it was a somewhat unfortunate set of circumstances and misunderstandings. I don't blame you, nor the other guy, for being a bit annoyed.
However, as the asker, it's always good to keep your cool even when faced with comments that come across as snarky. Remember that you're the one who wants something from the community! That doesn't mean you have to be subservient or take any abuse hurled at you (for true abuse, always flag as "rude/abusive" ore get help from a moderator), but a polite response explaining what exactly you don't understand or what doesn't work for you is always a good path to take even when you're rudely told to look up X, or just do Y.
This investment in self-restraint is not necessarily for the benefit of the other user, it's a public act: other users coming by (who might be able to help you) could be quick to misinterpret your annoyance (even if justified) as arrogance - or be impressed by your self-control and politeness, and go the extra step to help you out.
I told him his answer didn't answer the question, ... I flagged his comment as unconstructive.
How not to make friends and influence people