What happens to mercenary units that die during an outbreak mission?

Your units won't die permanently if you shell them with artillery (or they are otherwise killed during a mission), and they will still gain XP for zombies they killed before their untimely demise.

However, they will miss out on potential XP they could gain had they survived to kill more zombies during the course of the mission.