Like a shot has 2 different meanings across 2 categories:
Adverb · Prep_phrase
without delay or hesitation; with no time intervening
"he answered immediately"
"found an answer straightaway"
"an official accused of dishonesty should be suspended forthwith"
"Come here now!"
suddenly; without delay or hesitation.