For this sequence, speed is of the essence, which is somewhat atypical of the rest of the game, where careful consideration is generally rewarded. You have a little bit of time to react to these guards before the shutters close, but not really enough to have an extended shootout.
The easiest way to win, especially on consoles, is to bring a pistol that has been upgraded with a laser sight. I personally prefer the Five-Seven. With a laser sight, your weapon will tend to enter the "aiming" state centered on an enemy's head. This means you can rapidly take several guards out by looking in their general direction, entering the "aiming" state and quickly taking a shot.
The Five-Seven also has an integrated silencer, which means that in many cases you can kill several enemies without being detected with this method. There's a range past which this auto-aim trick doesn't work properly, but in this particular case you should be close enough range to take these guys out.
Otherwise, just be prepared to move quickly down the hallway, shooting at one or the other guard - this is usually enough to stun lock them, if you don't get lucky enough for a kill. You should be able to close the distance and finish both of them off before the gate closes.
Finally, if this isn't helping - go loud. Use something explosive or a primary assault rifle/SMG weapon if you have one. There aren't many guards who can be alerted in this area, so there's limited penalty for breaking stealth.