You cast 5th-level fireball; The boss rolls a crit fail on his dex save; You roll a 1 on all of the dice; The boss casts 5th-level counterspell; The boss fails the counterspell check; The boss has resistance to fire damage and only takes 5 fire damage