And Joshua said, “Why did you bring trouble on us? YHWH brings trouble on you today.” And all Israel stoned him with stones. They burned them with fire and stoned them with stones.
Joshua 7:25

Akan means "troubler", so when Joshua passed judgment on him, he said, "Troubler (akan), why have you brought trouble (akar) on us?"

When we are punished by rightful civil authorities for crimes against God, they are acting as his agents.