If someone is shot in front of you, first of all, seek cover. If it is safe to render aid, your first order of business is hemorrhage control. Bleeding extremity? Tourniquet now, re-asses later. Extremity wound you can’t tourniquet? Wound packing. Chest, abdomen,or neck wound? Chest seal/occlusive dressing.
The key to combat medicine is speed. Act decisively, then get the casualty out of the hot/warm zone and to somewhere you can re-assess them.