The Saudi authorities said dozens were injured in attacks by the Iran-backed militia and vowed to retaliate.