There is a trope in Judaism that God smites even the greatest Empires when they oppress the Jews.
Does God ever smite nations that are wicked to other non-Jews? We do have the example of Sodom, but perhaps they were smitten because they were totally evil or because they would have been a bad influence of Abraham's family.
Does God ever smite Jews that are wicked to non-Jews? The only possible instance I can think of is when God tells David to murder Saul's family in revenge for harassing the Gibeonites. But this could be punishment for violating Joshua's oath with them.