HODEIDA, Yemen (AP) — A helicopter gunship attacked a boat packed with Somali migrants off the coast of Yemen overnight Thursday, killing at least 31 people, according to a U.N. agency, Yemeni officials and a survivor who witnessed the attack.

Yemen’s Shiite rebels accused the Saudi-led air coalition of carrying out the attack. The coalition has been heavily bombarding the nearby coast around the Yemeni city of Hodeida, and it accuses the rebels, known as Houthis, of smuggling weapons into the port in small boats. There was no immediate coalition comment.

READ MORE: Migrant deaths rose sharply in 2016 thanks to dangerous sea crossings, says UN

A Yemeni trafficker who survived the attack said the boat was filled with Somali refugees, including women and children, who were trying to reach Sudan from war-torn Yemen.

Al-Hassan Ghaleb Mohammed told The Associated Press the boat had left from Ras Arra, along the southern coastline in Yemen’s Hodeida province, and was 30 miles (50 kilometers) off the coast, near the Bab al-Mandab strait, when the helicopter gunship attacked.

Story continues below advertisement

WATCH: Yemen conflict: a dire situation and forgotten war

2:16 Yemen conflict: a dire situation and forgotten war Yemen conflict: a dire situation and forgotten war

He described a scene of panic in which the refugees held up flashlights, apparently to show that they were poor migrants. He said the helicopter then stopped firing, but only after more than 30 Somalis had been killed. Mohammed was unharmed in the attack.

The Houthis said they had shot down a helicopter gunship in the same area a day earlier, without providing evidence. They also said the coalition had carried out a wave of airstrikes over the past 48 hours in southern Hodeida, including a helicopter gunship assault on a fishing vessel that killed a number of fishermen hours before the strike on the migrant boat.



READ MORE: Yemen’s Shiite rebels say they are dissolving country’s parliament

The Saudi-led and U.S.-backed coalition began striking the rebels and their allies in March 2015, hoping to drive the Houthis from the capital, Sanaa, and restore the internationally recognized government. The rebels remain in control of Sanaa and much of northern Yemen, and the conflict, which has killed an estimated 10,000 civilians, is in a stalemate.

Story continues below advertisement

Laurent De Boeck, the head of the International Organization for Migration in the rebel-held Yemeni capital, Sanaa, said the U.N. agency believes all those on board the stricken vessel were registered refugees.

De Boeck said 77 survivors were taken to a detention center in Hodeida. He said the IOM is in contact with the hospital, clinics, and the detention center to provide the necessary medical care.

WATCH: Suicide bombing in Yemen leaves at least 45 dead

0:32 Suicide bombing in Yemen leaves at least 45 dead Suicide bombing in Yemen leaves at least 45 dead

A Yemeni medical official in Hodeida said only 14 bodies had arrived so far, adding that women were among the dead. Another 25 wounded people, including some who had lost arms and legs, were brought to the hospital, he said, speaking on condition of anonymity because he wasn’t authorized to speak to the media.

The U.N. refugee agency said on its Twitter account that it was “appalled by this tragic incident, the latest in which civilians continue to disproportionately bear the brunt of conflict in Yemen.”

Story continues below advertisement

Despite more than two years of fighting in Yemen, African migrants continue to arrive in the war-torn country, where there is no central authority to prevent them from travelling onward to a better life in neighboring oil-rich Saudi Arabia.

READ MORE: Record 5,000 migrants believed to have drowned trying to cross Mediterranean Sea in 2016, agencies say

More than 111,500 migrants landed on Yemen’s shores last year, up from around 100,000 the year before, according to the Regional Mixed Migration Secretariat, a grouping of international agencies that monitors migration in the area.

The turmoil has left migrants vulnerable to abuse at the hands of the armed trafficking rings, many of which are believed to be connected to the multiple armed groups involved in the war.