Iran confirmed responsibility and said the launches were retaliation for the assassinations of Hamas and Hezbollah leaders.