Or they are trying to provoke Israel and/or the US into taking action so that they can use a nuke in response and say it was self defense.
either way, if they have these weapons, then they believe they hold all the cards -- because their "ace" is that they are very willing to use them.