The shift from covert attacks to open fighting between Iran and Israel illustrates that Tehran feels emboldened enough to confront and provoke its rival.