what klava didnt know , was that gregory had been recruited by the nkvd ( the soviet secret police from 1934 until 1938 when it was replaced by the kgb ) and had been their secret agent since his military school years .