STF: Suspect visited Pakistan, took training to make explosive devices