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.
HfdeDWrXUPYThe US House Ethics Committee has voted to release its report on former Republican Representative…
ABC News has agreed to pay $15 million to President-elect Donald Trump to settle a…
South Korea’s parliament has voted to impeach President Yoon Suk Yeol over his failed attempt…
Israeli war planes have carried out more than 100 air strikes in Syria on December…
President-elect Donald Trump has threatened to impose 100% tariffs on the BRICS countries if they…
Syrian troops have withdrawn from the city of Aleppo following an offensive by rebels opposed…