Miami-Dade County Democratic Chairman Steve Simeonidis said a photo of the armed officer in the mask was “city funded voter intimidation” in a Tuesday tweet. About an hour later, the Miami Police Department condemned the behavior and promised to address the situation.

The officer, photographed while in line to vote, violated department and polling place policy by promoting a political candidate, Miami Mayor Francis Suarez said at a Tuesday press conference. The situation would have been “much more serious” had the officer not been voting, Suarez said.