Minecraft wiki entry for Crossbow, associated text: Endermen teleport away from projectile paths, so they cannot be hit with crossbow arrows. However, they can still get harmed by firework rocket explosions, if they can't detect the firework rocket.