While flying my mavic 2 pro around an oceanfront hotel for a real estate agent's photos, an individual began trying to grab my attention by shouting, "hey you with the drone - what are you doing?" My first instinct (most likely the correct one) was to ignore him. After his incessant yelling, I looked up and stated i was doing RE work. The confrontation then proceeded to, "youre not allowed..." etc. This individual was clearly hostile and trying to have a shouting match from his balcony. Luckily, I had just finished up and was heading to my car. He quickly ran into his unit, as if to either call someone or grab a gun! I calmly loaded up and drove off. I was within an authorized airspace and not flying near anyone's unit. Can tenants or HOAs arbitrarily forbid you from flying and doing your job?