The 37-year-old, who was on a terrorist watch list, shouted "Allahu akbar" before he assaulted a police officer and killed a passerby.