The attacker must retreat. If they cannot retreat, their units in the combat are destroyed.
The official FAQ covers the case where it is mathematically impossible for either side to win, including certain Non-Euclidean Shielding and Duranium Armor configurations. The attacker is required to retreat; if no legal retreat exists, those attacking units are destroyed.
Official FAQ (LRR v2.0). Use the cited official wording or card printing; do not mix replacement / Omega / expansion versions.