CIA head defends agency, but says some went too far