Hani Mohammed, Associated Press
Men walk amid the rubble of a house destroyed by a Saudi-led airstrike on the outskirts of Sanaa, Yemen, Thursday, Feb. 2, 2017.

SANAA, Yemen — Yemeni security officials said on Thursday that warships, likely American, have been firing cannons and rockets at al-Qaida militants in the country's southern coastal areas.

The naval strikes, underway for five days, targeted mountainous areas north of the coastal town of Shakra where militants have been massing fighters, they said. Dozens of al-Qaida fighters are assembling there as well as north of the nearby town of Zinjibar.

The officials spoke on condition of anonymity because they were not authorized to talk to reporters. They also said that al-Qaida militants on Thursday attacked the town of Lauder, further to the east, killing six soldiers.

Al-Qaida in Yemen, long seen by Washington as of the most dangerous of the group's offshoots, has exploited the chaos of Yemen's civil war to seize territory in the country's south and east, and the Islamic State group has also claimed attacks.

The two-year-old civil war began after Shiite Houthis rebels seized the capital, Sanaa, and forced the president, Abed Rabbo Mansour Hadi, to flee the country. In March 2015, a Saudi-led military coalition launched an extensive air campaign aimed at restoring Hadi and his government to power. The northern region remains under Houthi control.

Fighting and U.S. involvement has appeared to pick up since Donald Trump assumed the U.S. presidency last month, with drone strikes and a surprise commando raid on al-Qaida militants. The Houthis also attacked a Saudi frigate in the Red Sea, killing two crew members and wounding three.

The U.S. raid on the al-Qaida base in the central province of in Bayda on Sunday left nearly 30 dead, including an estimated 14 militants, as well as civilians. A U.S. Navy SEAL was also killed, the first known U.S. military combat casualty since Trump took the oath of office on Jan. 20. Four other U.S. service members were wounded during the raid.

In the attack on its frigate, Saudi Arabia said on Monday that a "suicide gunboat" belonging to the Iranian-backed Houthis rammed the ship in the Red Sea that was patrolling off the Yemeni port of Hodeida.

The Houthis gave a different version, claiming that the frigate was hit by a rocket they fired, starting a fire on board the ship.