Annoyingly, you cannot swap your loadout out in the field. Weapon changes happen at your villa, where you return to the armoury and equip whatever you have unlocked.
So the practical habit is to plan ahead: decide which weapon suits the mission before you leave, because there is no mid-mission respec to fall back on.