Miami County voter clerk resigns over primary election gaffe