Popular gay rights activist Julhas Mannan has been hacked to death, authorities reported.
Another person was also killed and one person injured when attackers entered an apartment in Dhaka, police reported.
Julhas Mannan was an editor at the only Bangladesh’s LGBT magazine Roopbaan and previously worked at the US embassy, friends said.
The killing comes two days after a university professor was hacked to death close to his home by suspected Islamist militants.
Since February last year suspected militants have killed several secular or atheist writers and members of religious minority groups.
Earlier this month, a Bangladeshi law student who had expressed secular views online died when he was hacked with machetes and then shot in Dhaka.
Last year, four prominent secular bloggers were also killed with machetes.
The four bloggers had all appeared on a list of 84 “atheist bloggers” drawn up by Islamic groups in 2013 and widely circulated.
Meanwhile Bangladesh’s best known blogger said he had received a death threat on Sunday.
Imran Sarker, who led major protests by secular activists in 2013 against Islamist leaders, said he had received a phone call warning that he would be killed very soon.
There have also been attacks on members of religious minorities including Shia, Sufi and Ahmadi Muslims, Christians and Hindus.
Bangladesh, whose population is made of mostly Muslims, is officially secular but critics say the government has failed to properly address the attacks.