The explosion, which has been attributed to a burst heating pipe, took place on Wednesday evening, Shabani Marugujo, the head of the local emergency services, said.
The sugar factory had just restarted production on Wednesday after being closed for several weeks during the rainy season between March and May.
Morogoro is around 180 km from Dar es Salaam, Tanzania's largest city.