Politically complicated
The situation in Bangladesh is dangerous at the moment. The mostly democratic and secular government is under major pressure from Islamists, many of whom collaborated with Pakistan in the genocide and civil war in 1971.
Secular bloggers are being systematically murdered, targets of an Islamist campaign to silence people speaking against the Islamists. The campaign is being run online, and there are supporters and funders (and targets!) in the UK. So in these circumstances it is possible to see the motivation to shut down the internet, even if it's counter-productive or unworkable.