Maryland’s schools superintendent to resign Oct. 6, become senior adviser to Board of Education the next day