Palma is a base for many foreign contractors who have been working for a multibillion-dollar liquified natural gas project run by the French energy company Total.
Security sources said insurgents had infiltrated the area around the town before that attack, hiding weaponry in caches. Many were disguised as community members with some wearing army or police uniforms.
Government infrastructure in the town was targeted in a systematic manner, with the local police station and military base overrun and destroyed, while at least two banks were raided, local security sources said.
A group of at least 120 insurgents came from the northern regions of Cabo Delgado, while a similar size group was said to have crossed over from Tanzania to reinforce the attackers on the second day of the assault, the sources said.
Analysts at the International Crisis Group say the biggest cohort of foreigners fighting within the ranks of ASWJ are from Tanzania.
The three-year insurgency in Cabo Delgado province has killed more than 2,600 people and displaced an estimated 670,000, according to the UN.
Most observers believe the insurgents in Mozambique have limited international links, though the ASWJ is considered as Isis affiliated by the US.
“While there is evidence that Isis has had some contact with jihadists in Mozambique, it is unclear how close or meaningful their ties are … Communication between the groups and some coordination in disseminating propaganda does not suggest especially close links,” the International Crisis Group said in a recent report.
When the attack began last week, several hundred workers from South Africa, Britain and France sought refuge at hotels in the town, with an estimated 200 under siege in Hotel Amarula alone. After a failed attempt to escape by sea, a convoy of vehicles attempted to flee the besieged hotel and reach the coast before they were ambushed twice.
Recordings of security calls reviewed by the Guardian described scenes of chaos as helicopters and boats run by several security companies attempted to extract those trapped in the town. A South African woman, Meryl Knox, told Reuters her son Adrian Nel had died in that ambush.
One foreigner who was rescued described the town being overrun before being rescued by security contractors from Dyck Advisory Group (DAG), a private security company.
“The Amarula lodge was completely surrounded and under attack from mortar and machine gun fire,” said one South African. “And these guys [from DAG] came in with their choppers and cleared the perimeter to get at least four chopper loads of people out. Twenty-three of us. I was on the last chopper out luckily, because they stopped because of a lack of fuel and daylight.”
He added that those people staying in Amarula had to “make a run for it because the place was being assaulted with heavy weaponry”.
Lionel Dyck, a South African former soldier who runs DAG, told South African TV that he had warned of such an attack some time ago. The company was recently accused in a report by Amnesty International of killing civilians – a charge it denies.
“This is the time of the post-rain fighting season. It’s been on the cards for a long time, and we are disappointed that there has been very little attempt by the people in Palma to protect themselves,” Dyck said.
“This insurrection has grown from a well-armed group of bandits to [launching] a very well planned and coordinated attack. They have been very effective [and pose] quite a serious threat now.”
On Sunday, boats began arriving at Pemba, a port 155 miles south of Palma, carrying locals and foreigners. One was carrying about 1,300 people, said a diplomat.
Total said on Saturday it was calling off a planned resumption of construction at its $20bn development after the attack and would reduce its workforce to a “strict minimum”.
The company pulled out the majority of its workforce in January because of security issues.
Alexandre Raymakers, a senior Africa analyst at the risk intelligence firm Verisk Maplecroft, said the scale and intensity of the attack on Palma suggested meticulous planning, probably during a lull in the fighting during rainy season in the first three months of this year.
“It’s a clearly demonstration that [the insurgency] has steadily increased its military capabilities, grown in sophistication and retains the initiative. The latest attack … is a major setback for [the government of Mozambique] and raises serious questions about its ability to guarantee the security of [gas] projects vital to the country’s long-term financial stability,” Raymakers said.