This scene, which has become a classic, was actually done to shorten the movie and save Harrison Ford from having to perform a long fight scene. Yep, good old common sense.
Actually the scene was to have been shot as written but Harrison Ford had to go to the bathroom real bad so he pulled out his gun and shot the guy. It looked so natural they left it that way.