A suspected al-Qaida suicide bombing, accompanied by an attack with guns and grenades, killed 10 soldiers guarding an intelligence building in the western Yemeni city of Hodaida on Friday as well as two of the assailants, security sources said.
"Gunmen believed to belong to al-Qaida attacked the main gate of the political security building with rocket-propelled grenades and machine guns after a car bomb driven by a suicide bomber attacked the back gate," one of the sources said.
Al-Qaida and the Islamic State group have both gained ground in Yemen, where a war has been raging for the past seven months between a Saudi-led military coalition and Houthi militiamen allied to Iran.
The militant Islamist groups view the Shi'ite Muslim Houthi movement, which controls Hodaida and much of Yemen's north, as apostates deserving death.
But the Islamic State group has also hit out against the Arab military alliance supporting Yemen's embattled government.
In a series of suicide bombings on October 6, Islamic State fighters killed 22 people, including several troops from the United Arab Emirates, at the government headquarters in the southern port of Aden, and at military bases in the city.
Ground fighting and Saudi-led airstrikes have killed at least 5,400 people in Yemen's multisided conflict, which started as a civil war among competing factions but has drawn in outside powers in a regional struggle for influence between Sunni Gulf countries and Shi'ite Iran.
Jets from a Saudi-led military coalition bombed the house of Yemen's speaker of parliament on Friday, residents said, as part of a wave of attacks aimed at influential politicians.
The attack hit the residence of Yahya al-Ra'i in central Dhamar province, leaving him unscathed but killing his son.
Residents of the Houthi-controlled capital, Sana'a, reported about 60 coalition airstrikes in the past two days on military bases and houses belonging to family members of Ali Abdullah Saleh, a former president and important ally of the Houthis.
Five civilians were killed in the bombardment of the capital on Thursday, residents said, including at least two children.