A former deputy chief of the government agency in Taiwan that handles relations with the mainland is under investigation for alleged breaches of national security.