The accident happened around 4 p.m., when the ship owned by the Fujian Shipping Company was being repaired.
Nineteen people injured in the accident are receiving medical treatment at a local hospital. They are in stable conditions, authorities said.
A preliminary investigation showed that carbon dioxide leaked from the fire system due to improper operation of crew members. Those responsible for the accident are under police custody.
Further investigation is still underway.