Bangladesh on Friday announced the imposition of a curfew and the deployment of military forces after police failed to quell days of deadly unrest that has spread throughout the country.