Man accused of coffee attack at the polls