The +2 bonus to AC comes from there being a physical object in the way that prevents projectiles from hitting you. At most, I would say that an illusion (if done right to obscure the shooter's view of you) could give them disadvantage on the attack because they're shooting at something they...