The commissioner, whose exit will leave a second vacancy at the administration, said she will remain on the job until a successor can take office.