Colombian authorities detained a China-flagged ship traveling to Cuba for illegally transporting around 100 tons of gunpowder and other materials used to make explosives and arrested the captain, the attorney general's office said.