As the title says, it was a film wherein at the end, a group of British soldiers barely escape by plane, but one cannot on board fast enough and they are being chased by natives, bent on killing them all. The last one yells “Kill me!” and his friend machine guns him to death as the plane takes off. That’s all I remember.
“The Wild Geese” (1978)
https://www.imdb.com/title/tt0078492/
Richard Harris plays the soldier who cannot escape by the plane and is killed.
Full movie is on YouTube:
https://www.youtube.com/watch?v=3Bn8m8JnrCA
The scene you are describing starts ca. at the 1:52:00 mark.