Maybe revealing the capability is intended to deter Iran. If Iran can't develop a countermeasure quickly, then Israel could use the same tactic against Iran in coordination with a strike against their nuclear facilities.
Discussion
Definitely a possibility. Israel seems to keep doing things to make Iran think twice about getting directly involved. (pager bombs, taking out a proxy leader at their leader's palace, etc.)