Masked bandit robs man at ATM