A Co Tyrone man has been remanded in custody after members of the public reported him with a knife close to a school.