McCarthy, Dorchester native, to lead environmental agency