This was actually Harrison Ford improvising. There was supposed to be a long complicated battle where he used the whip to disarm the guy, but Harrison had dysentery and it was hot and he said “Hey Steven can I just shoot him?” and Spielberg liked it so much it went in the movie.
Dysentery never looks so delicious
That guy who he shot spent months training with the sword
Ford was literally on the verge of dying during this part of the production.