When you attack, you must choose a single region, and a single faction within that region. You can divide the damage dealt as you choose among the troops of that faction in that region. If you defeat all of the troops of that faction and still have damage left over, that damage is lost. You do not get to redirect the leftover damage to a different faction or region.