Police in the Tanzanian capital have declared a curfew in Dar es Salaam amid election-day protests.