Taiwan says it has arrested a military intelligence officer who allegedly provided defense secrets to China .