Commissioner Saidi Meck Sadick said 18 people had survived.
He added that the search for other survivors was continuing.
Earlier reports said some 45 people, including construction workers, residents and children from a Koranic school, were missing.
The high-rise building under construction is now a “huge pile of chaos”.
Trapped victims are said to have been making phone calls to friends and relatives.
Tanzanian President Jakaya Kikwete visited the scene.
The collapsed building was near a mosque, as well as other residential and commercial properties in central Dar es Salaam.
It was supposed to have been at least 12 floors high when finished.
Police say they are questioning four people linked to the construction company, while work on a nearby site undertaken by the same company has been suspended.
Tanzania’s growing economy has prompted a construction boom in Dar es Salaam in recent years, as in many African cities.
But correspondents say the speed of construction and lack of safety standards sometimes put at risk both the buildings and those living and working in them.
HfdeDWrXUPYImage source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…