Firefighter Andrew Williams was arrested after the photo showed him pointing to a poster for Speaker Pelosi in the US Capitol building