Somalia's military has rescued eight Indian crew members who had been held hostage by pirates, an official says.
The sailors of a ship hijacked last week were rescued after regional forces surrounded their pirate captors in a small village outside Hobyo town, Abdullahi Ahmed Ali, the town's mayor, told the Associated Press.
Four pirates were arrested during the operation, he said.
All the Indian crew members had been rescued as two had been freed in the ship on Sunday, the mayor said.
Ten crew members were taken captive, not 11 as initially announced by officials, he said.
Pirates made the captive crew members walk long distances in the bush for days to avoid troops that were chasing them.
"They are exhausted and hungry because of that long ordeal," the mayor said.
In recent weeks there has been a resurgence of piracy off Somalia's coast after five years of inactivity.
The piracy was once a serious threat to the global shipping industry but lessened in recent years after an international effort to patrol near Somalia.