Sensitivity of the Cherenkov Telescope Array to Dark Subhalos