Work was now ongoing to establish the events leading up to the attack and the suspect's background, police said, and a knife had been recovered from the scene.