During combat enemies will sometimes shoot at you, you'll know when they are about to fire by yellow arrows that appear above their heads. Once you see this you will need to press
while next to a different enemy, this will use them as a human shield and block you from getting shot.