DHAKA: A mob of nearly 3,000 attacked Hindu households and a temple in eastern Bangladesh after two youths from the community allegedly insulted the Prophet Muhammad on Facebook.

Police on Monday arrested 17 people, including the principal of Bagmara Madrasa , for the attack on the temple and over two dozen households at Homna in Comilla district, about 100km south east of Dhaka, last week.

"We so far arrested 17 people and some of them made confessional statements regarding the attack. A manhunt is under way to arrest the rest of the culprits," police chief of Homna, Aslam Shikdar said.

He said suspected mastermind of the attack Nazrul Islam is still on the run.

The local police chief said steps were under way to put the accused on trial on charges of attacking the Hindu households and the temple under a planned manner.

A makeshift police camp was setup at the village where the incident took place on April 26 following rumours that two Hindu youths had allegedly insulted the prophet in a Facebook post.

Earlier reports said culprits mobilized attackers mostly belonging to fundamentalist Jamaat-e-Islami and several other ultra-right groups who ransacked the temple and the nearby households and looted some valuables.

"The attack continued for some 20 minutes but during the time, the culprits preferred not to injure anyone ... our initial investigation found it was a pre-planned attack as they used loudspeakers and distributed leaflets to mobilize the attack," Shikdar said.

People at the neighbourhood said nearly 3,000 attackers, mostly from outside the locality, staged the attack as the village elders were set to hold a meeting to resolve the issue of the alleged defamation of the prophet.

Shikdar said police immediately rushed to the scene but reached the remote village only when the attackers had fled.