Maputo - Police in Mozambique said on Tuesday they had detained 52 people after a string of attacks on police stations, in which 14 attackers were gunned down and two officers killed.
Police also backed away from an earlier claim that the gunmen were linked to homegrown "Islamic extremist sects", saying they were not connected to any organised terror group.
"Nothing can make us say there is a connection between the attackers and terrorist groups," police spokesperson Inacio Dina told reporters.
"Among those detained are the perpetrators and others who contributed to the logistics of the attack, providing food, shelter and other support."
The attacks occurred on Thursday and Friday in the sleepy town of Mocimboa de Praia in the north of the country near the border with Tanzania, where three police stations were targeted, local media said.
Fourteen of the attackers and two police officers were killed. One local man also died.
Police said they were still investigating the motive, adding that the armed attackers were from different parts of Cabo Delgado province.
Authorities and analysts have dismissed claims of links to Somalia's Shabaab jihadists or Boko Haram in Nigeria.
"It's clearly homegrown and a response to local issues," Alex Vines from the London-based Chatham House think tank told AFP.
"This is a wake-up call for Mozambique and unless inequality and youth unemployment and education is improved, we may see more of this."
Police dispatched special forces from Pemba, 500km away, to stop the attacks.
Armed clashes and assassinations of politicians are not uncommon in Mozambique, where on-and-off clashes have occurred in recent years between government troops and armed militias loyal to opposition party and former rebel movement Renamo.