A villager was summoned in with the following command.
/summon Villager ~ ~1 ~ {NoGravity:1b,Profession:0,Invulnerable:1}
Several ghast fireballs hit the villager and the villager and it died
A villager was summoned in with the following command.
/summon Villager ~ ~1 ~ {NoGravity:1b,Profession:0,Invulnerable:1}
Several ghast fireballs hit the villager and the villager and it died
Cannot reproduce in survival mode.
Be aware that in creative mode, you can damage invulnerable entities, thus redirecting a fireball counts as attacking in creative mode.