A blogger was hacked to death by three men in Bangladesh's capital on Monday, with two of the suspected attackers caught near the scene, police said.

The killing took place a month after a prominent Bangladeshi-American blogger known for speaking out against religious extremism was hacked to death in Dhaka by unidentified assailants.

In the latest incident, Washiqur Rahman Babu was declared dead as he was taken to a government hospital shortly after being attacked in Dhaka's Tejgaon area, Dhaka Metropolitan Police official Biplob Kumar Sarker said.

Two suspects were captured and three meat cleavers were recovered, Sarker said. The captured suspects were students at separate Islamic schools, and the third suspect fled the scene, he said.

It was not immediately known what sort of blogging Babu did, Sarker said, adding that the suspects told police that they targeted him for his anti-Islamic writings.

Two of the victim's cousins told reporters at Dhaka Medical College Hospital, where Babu's body was being kept, that Babu recently joined a travel agency in Dhaka after finishing his studies, but they were not aware of any blog he had kept.

Local media reported that Babu had a Facebook page that contained the line "Iamavijit," meaning he was a follower of Avijit Roy, the Bangladeshi-American blogger who was hacked to death late last month.

Roy, a Bangladesh-born U.S. citizen, died after he was attacked on Dhaka University campus when he was leaving a book fair with his wife. A previously unknown militant group, Ansar Bangla 7, claimed responsibility for the attack. Detectives have arrested one suspect in the case, and the FBI is helping with the investigation.