How to draw out troops when clan castle is in middle of base
Solution 1:
Analyse the base first:
Locate the defences on the perimeter that are within the clan castle radius. The perfect one would be the one that is located on the side from which you wish to attack.
After having chosen a defence to use to lure the cc, check if there is a wall hindering you from getting to the defence.
If there is a wall you will need hogs. If there is no wall you will need at least two giants. Two giants because there maybe a spring trap waiting for the first giant, so send them with maybe a one second difference between dropping them.
If there is a wall and a lot of defences around your chosen defence, you will need 2 or 3 hogs. This is because one hogs may get wiped out before it even reaches the intended target. The hogs may seat just outside of the clan castle radius when they reach the target so having three will make sure they plough it down quick and move deeper and therefore awakening the castle troops.
If there is no wall do not send your lure giants at once, send one first, if it gets flung out by a spring trap you still have a second one. Same applies for hogs, do not drop the lure hogs at once, if there is a trap they all get flung out (likely).
Special conditions:
If there is a wall and the clan castle is too deep, you will need a giant to distract the selected defence, and at least 3 or 4 hogs to wipe out the outer defences and then move in to a deeper defence to lure out the CC troops. Youtube search "giant hog lure" and you will definitely find this strategy.
If you absolutely want to use lightning to kill the cc, don't kill them while they are still moving. wait for them to stop moving/to settle in a cluster then drop that lightning.
If using dragons at TH7 or 8, destroying an air defence using three lightings works well. Your dragons will kill the cc themselves.
If you follow point 3 above. Do not drop your dragons on spot, if there are wizards in the clan castle they can wipe them out quickly or at least bring all their health down in that one spot. I have seen this happening a number of time with newbies.
If using dragons to try to get to a entered down hall, do not drop all of them in one spot, they will all go to the sides following the buildings on the perimeter. Instead, drop one on the left and one on the right with a space difference of 3 buildings, drop one in the middle. They will move on the perimeter, and leave an open space where they have cleaned up, this is where you drop your other dragons, they will definitely move towards the centre.
Solution 2:
Are you sure the castle was "too deep"? Best way to know is to view the base and click on the enemy castle. The circle drawn on the map shows you where a troop must reach to draw the CC troops. By reach, I mean must occupy. An archer outside the castle radius attacking a building inside the castle radius doesn't count.
@pnizzle's advice is spot on.
Sometimes the only troop you need is a barbarian, goblin or even a wall breaker. Giant is recommended because it usually lives long enough to lure everything in the castle out, and is a ground troop. Anything in a clan castle will attack a ground unit, but if the CC contains e.g. balloons, a minion crossing into the castle radius will NOT draw out the CC contents. Only troops that are able to attack air troops respond to an air troop.