Witnesses stated that there were two explosions which could be heard miles away, media reports said.
All the injured were rushed to nearby hospitals for treatment.
The factory had been operating since the last two months.
Although the factory had a permit, its proximity to a residential area was against regulations, reported Indonesia's MetroTV, quoting a local official as saying.(ANI)