To be fair, the Iranian state is a proper military. I’m not sure if there is a way to fight a guerilla force without massive civilian casualties. (Which is why one generally shouldn’t.)
A better analog might be Hezbollah. Surgically dispatched. Resolved with minimal follow-on nonsense from both sides.