The knife attack was carried out by a 37-year-old man, who is on a terror prevention watchlist.