Unveiling the origin of the gamma-ray emission in NGC 1068 with the Cherenkov Telescope Array