The attack wasn't really a specific attack against walkie-talkies. You can plant a bomb in literally anything, Israel just happened to put them in walkie-talkies, pagers, and possibly solar panels. The possibility of putting a bomb in something isn't new, and neither is putting a bomb into a communication device (Israel has done that since the 1990s).
I would hope that governments have always thought about security for military equipment. If governments are only now realizing that a foreign power could tamper with their equipment something is seriously wrong, especially since the U. S. has been tampering with other countries electronics for decades with Stuxnet and has run multiple fake companies (Anom, Crypto AG) that tampered with encryption to access state secrets.