The radicalisation of a school student who went on to commit a horrific killing of a police worker only took place a month before the shooting.