A 21-year-old military police officer has taken his own life in front of Taipei's Presidential Office.