At the point where kirk was held hostage, about to be killed by the enemy, he jumped from platform to platform, he made it on to the ledge of the platform where it revealed the phaser before the enemy had strangled him, which then kirk used that very phaser taken from the enemy to shoot him and dropped into place where it was shown before.