Paul Foley resigns from State Board of Elections