While Hollywood superstars blissfully sipped drinks on the Maldives' secluded white beaches, an Islamic revolution fueled by preachers trained in Pakistan and the Middle East was brewing.
On Sept. 29, the two faces of the Maldives collided when a homemade bomb exploded in a park in the capital, Male, wounding 12 tourists, threatening the critical resort industry and sending the clear message that even this remote corner of paradise is not immune to terrorism.
The attack, and a bloody confrontation days later between police and masked Islamic extremists armed with harpoons, stunned this Indian Ocean nation and threatened its careful effort to balance its traditionally moderate Islamic heritage with liberal Western values.
The government reacted swiftly to crush the fundamentalist movement that had risen amid the palm trees and crystal blue waters of its 1,190 coral islands. Authorities banned the veil, arrested scores of suspected extremists, sealed underground mosques and promised a crackdown on radical preachers.
"We are not taking chances," Information Minister Mohamed Nasheed said.
So far, the violence has not frightened off the tourists, who account for one-third of the economy, he said. But "if there is another attack, then we just close tourism here. And we can't afford that," he said.
By far the most prosperous country in south Asia, with a per capita annual income of US$2,700 (1,840 EUR), the republic had seemed safe from the worldwide rise of Islamic militancy. Its longtime ruler, President Maumoon Abdul Gayoom, had harnessed his nation's major natural resource - hundreds of small, deserted islands - to create remote, upscale resorts that fueled explosive economic growth.
But the country also suffered deep divisions.
While many high school graduates went to Europe or Australia for a liberal education, others studied religion at extremist institutions in Pakistan and Saudi Arabia and spread their radical beliefs across the islands, said Rohan Gunaratna, a Singapore-based terrorism expert hired by the government. He estimated that several thousand of the country's 300,000 people now follow these clerics.
"They are preaching a deviant form of Islam," he said.
These once marginal preachers have found a new wave of adherents in recent years. The global outburst of Islamic anger after the U.S. invasion of Iraq and the spread of Internet access to this country's remote islands played a major role in the growing fundamentalism, said Hassan Saeed, the Maldives' former attorney general.
"Suddenly, an island nation cut off from the rest of the world became part of the global village," he said.
So did the Maldives. But despite the relative prosperity, there weren't enough jobs for the huge population of young people, and many turned to drugs or radical Islam, Saeed said. The Islamic Council, the government body that runs official mosques, accredits preachers and controls all aspects of religion here, was still distributing decades-old sermons to its imams and was caught unprepared, he said.
The trauma of the 2004 tsunami, which killed more than 100 people here and devastated many islands, also fueled an Islamic revival. Hussein Mohammed, 40, said he was among 200 displaced people originally from the island of Moondu who spent two years in an abandoned textile factory on the island of Gan before getting a new house. Many in the crowded factory sought solace in the translated copies of the Quran the government provided, and within months nearly all the women began wearing head scarves, he said.
"After something like the tsunami, this frightening thing, people became far more interested in religion," he said.
While many of the fundamentalists were not violent, a Maldivian was caught trying to join the Taliban in Afghanistan, another was arrested in India seeking to buy sniper rifles, and a third was jailed by U.S. authorities in Guantanamo Bay, Saeed said.
"For a small country, there were a large number of alarming signals," said Saeed, who quit the government in August, in part because he felt a report he wrote on the looming problem was ignored.
Like villagers on several other scattered islands, the people of Gan found themselves suddenly confronted by a small group of angry fundamentalists earlier this year.
"They said they are Muslims and others are not Muslims and that others should be killed," said Daoud Ibrahim, the clean-shaven imam at the government mosque. "I have never seen this before ... it's against our traditions."
While rows of villagers in knitted white skullcaps prayed in the spacious mosque with its green tile floors, the fundamentalists - dressed in Saudi-style white robes and headdress- took over a tiny mosque of concrete and corrugated metal meant for Bangladeshi construction workers. They pressured Maldivian women to wear head scarves, mocked clean-shaven men as unbelievers and quietly plotted to drive tourists out, officials said.
Some in the group were tsunami refugees from the remote island of Kalhadoo, which embraced a strict form of Islam more than a quarter century ago under the tutelage of a Saudi-educated preacher named Mohammed Ibrahim. Angry at Ibrahim's dissident Islamic views, the government had banished him from Male to Kalhadoo, where he quickly turned the islanders into his disciples, said Yousef Ismail, a former Kalhadoo resident who now lives in Gan, as his wife sat nearby, covered head-to-toe in a black robe.
Police say at least one of the men on Gan, whose cell phone was discovered in the ocean near the airport, was directly connected to the Male blast. On Wednesday, police said the man, Abdul Latheef Ibrahim, had fled to Pakistan ahead of the blast along with nine other suspects from different Maldive islands. Six other suspects were already in custody.
Interpol on Friday issued "red notices" for 10 suspects in the bombing - the equivalent of putting them on the international police organization's most-wanted list, an Interpol official said late Monday, without providing details.
The nail-packed bomb exploded just before 3 p.m. in a Male park popular with tourists. The blast wounded 12 vacationers from Japan, China and Britain. Though the bomb was poorly built, it was a sign of more attacks to come if the government did not confront the problem, terrorism expert Gunaratna said.
"This is the way it starts, then the bomb-making becomes more sophisticated because they learn," he said.
After the bombing, the band of fundamentalists on Gan disappeared amid conflicting reports they had been arrested, fled abroad or were hiding in the island's lush palm groves or even in their own homes.
The government swiftly launched a wave of arrests around Male and brought in the FBI. On Oct. 7, scores of police landed on the island of Himandhoo, a reputed insurgent stronghold.
The islanders were waiting. Photographs published in magazines showed masked men, some wearing motorcycle helmets and carrying clubs, gathered in an unauthorized mosque they had rebuilt after authorities demolished it last year.
A melee broke out. Islanders stabbed one officer in the leg with a harpoon, slashed another with a gigantic fishing hook and nearly severed the hand of a third, said spokesman Nasheed. When the fighting ended the next day, more than 30 troops and officers were injured and 65 islanders arrested.
In the wake of the violence, the government announced it would encourage moderate Islamic scholars, update the religious curriculum to make it relevant and enforce an earlier law prohibiting women from veiling their faces. But clusters of veiled women continue to walk the streets of Male, underscoring the challenge the government faces.
Nasheed said he also instructed state-owned media to stop glorifying holy war and cease referring to Palestinian suicide bombers as jihadis. State television will hire no new female anchors who wear head scarves and no longer shows veiled women, even in news reports, he said.
The government will stop accrediting imams from extremist schools - many of them in the Middle East - and will fire all the radical scholars serving on the Islamic Council, he said.
"We are trying to replace them with people who have come from Asian countries, except Pakistan of course," Nasheed said.
Officials from the Islamic party Adalaath blamed the rise of extremism on political repression that has kept Gayoom in power since 1978. The latest crackdown would only make things worse, said Asim Mohamed, the party's political secretary.
"We feel the government is using that opportunity to oppress the opposition," he said.
Nasheed said the fight against the extremists was too critical to the country's survival for the government to ignore.
"We have always been a very liberal society," he said. "We can't afford to look back 1,400 years."