Joel I. Klein, who presided over a radical reorganization of the New York City school system and drew praise and criticism for efforts to raise test scores and hold teachers accountable for them, resigned on Tuesday as chancellor after eight years in the job.