The clockwork tunnels levels are randomly generated, so whether you get that particular segment or not is completely up to chance.
That said, you'll probably find that bringing a polaris with you will make such situations much, much easier. You should be able to get off a couple shots before having to shield the first rocket hit, and then if you time things right the puppy will be interrupted long enough to be able to keep spamming it until it dies.
Another option is to use an RSS to pick off the puppy from outside its aggro range.