I have published recently the rally that has swivelled this match between Ramy Ashour and Borja Golan at the 2012 British Open, the rally where Ramy has switched to 'Pro' mode, where every shot was a pressure shot without risking too much, without knowing in advance which will be the winning one, taking it step by step, but each time a more severe step.
The below rally is to demonstrate the opposite: how you get in trouble if you attack in the wrong time. At 0:11 Borja Golan plays a tricky semi-lob from behind his body on the backhand side, which takes Ramy by surprise; the shot is deep and soft enough to force Ramy to play the ball before its bounces on the backwall. At this moment, at 0:13, Ramy decides to go for a kill, but the ball hits the sidewall straight after the frontwall, it hence comes off loose in the middle and Borja can chose form a few options, he goes for the trickle boast, Ramy dives, scraps it off, just, offering Borja to conclude easily with a drop.
I think that Ramy's kill-attempt is an excellent example to demonstrate a wrongly chosen attacking shot. It was not only badly hit, but also in the wrong moment. From so far back, with so little space for a decent powerful backswing, going for a kill is really risky - unless it perfectly fades towards the sidewall, it will just take away time from yourself and allow your opponent to pick it up with plenty of options.
Ramy is a master of the lifted shots from the back - just check out this beautiful and classic example - and this time it should have been just another occasion to play a basic shot, high and deep enough, possibly also tight, to allow himself to get back to the 'T' and see what kind of options he gets from his opponent's next shot.
I know on a certain level you have to be able to turn defence into offence, but it doesn't mean you can do it in any time, in any situation.