LANSING, Mich. — Michigan’s top environmental regulator resigned Tuesday after elevated levels of lead were found in Flint children during a drinking water crisis that a task force blamed primarily on his agency.

Gov. Rick Snyder accepted the resignation of Department of Environmental Quality Director Dan Wyant and apologized for what occurred in Flint, which switched its drinking water supply in a cost-cutting move while under state financial management. Communications director Brad Wurfel also resigned, and Snyder said he plans additional personnel changes in the agency.

Wyant quit the same day a task force appointed by the Republican governor reported that the department was primarily responsible for the fiasco because it did not require Flint to keep corrosive water from leaching lead from service pipes into residents’ homes and belittled concerns from the public. Exposure to lead can cause behavior problems and learning disabilities in children.

“I want the Flint community to know how very sorry I am that this has happened,” Snyder said in a written statement. “And I want all Michigan citizens to know that we will learn from this experience, because Flint is not the only city that has an aging infrastructure.”

The five-member task force, which previously brought up concerns about a lack of organization in responding to the disaster, said the environmental department’s Office of Drinking Water and Municipal Assistance has a “minimalist approach” to regulatory oversight in which “technical compliance” is sufficient. It faulted the agency for a “tone of scorn and derision” toward the public, including outside water and health experts who raised alarm bells.

The task force confirmed that the state did not follow the federal Lead and Copper Rule when Flint disconnected from Detroit’s water system in April 2014 and switched to Flint River water while waiting to connect to a new regional water authority.

Detroit’s water from Lake Huron had been treated for corrosion. State officials thought that after Flint made the transition to the river it could test the new water for lead over two six-month intervals to determine potential corrosion treatment instead of needing to immediately add corrosion controls. Flint returned to Detroit’s water in October after a public health emergency was declared.