The deputy head of Taiwan’s government-controlled weapons developer has died after suffering a heart attack on a trip to the south of the island.