Pennsylvania secretary of state resigns amid scandal