After stabbing a police officer and running many people over, the assailant has been shot in what is being considered a terrorist attack.