Julhash Mannan, the editor of 'Roopban' -- the only magazine in Bangladesh advocating gay rights -- and his friend Tanay Fahim were killed on Monday by armed assailants who entered the flat impersonating as courier company officials, police said.
The Al-Qaeda in the Indian Sub continent claimed responsibility for killing the duo, saying that the two were because they were "pioneers of promoting and practicing homosexuality."
"The mujahidin of Ansar al-Islam (Al-Qaeda's Bangladesh branch) were able to assassin Julhash Mannan and his associate Tanay Fahim. They were the pioneers of practicing and promoting homosexuality in Bangladesh," the AQIS said in a Twitter post.
"They were working day and night to promote homosexuality among the people of this land with the help of their masters, the United States crusaders and its Indian allies," it was quoted as saying by Dhaka Tribune.
Mannan, 35, a cousin of former foreign minister Dipu Moni and ex-protocol officer of the US embassy, was known for his gay rights activism.
Fahim, the other victim, was also a LGBT activist.
The assailants barged into Mannan's flat on the second floor and stabbed him and his friend indiscriminately, Abdul Bari, a sub-inspector of Special Branch of police, was quoted as saying by the Daily Star.
The two died immediately on the spot.
Mannan's body was found lying at the entrance of the house while Fahim's body was found inside.
The killings came two days after the grisly murder of liberal university professor Rezaul Karim Siddiquee in the northern Rajshahi city. The attack was claimed by the Islamic State.
Image: Xulhaz Mannan. Photograph: Xulhaz Mannan/Facebook
Gay magazine editor stabbed to death in Bangladesh
Bangladesh professor hacked to death near his home
Bangladesh sentences two to death for killing blogger
Bangladesh arrests blogger murders' mastermind
Secular student activist hacked to death in Bangladesh