Unidentified attackers have hacked a university professor to death in Bangladesh, police say, adding that the assault bore the hallmarks of previous killings of bloggers and online activists.