At least 20 people were killed and five were missing after a cargo ship caught fire while docked in a Chinese port, Chinese state media reported.