LONDON -- A man wearing a fake explosive vest stabbed several people Friday in London, U.K., killing two in what police are treating as a terrorist attack before being tackled by members of the public and then fatally shot by officers on London Bridge.

Police said the attacker was Usman Khan, a 28-year-old who was released on probation last year after serving six years for terrorism offenses.

Metropolitan Police Chief Cressida Dick said two stabbing victims had died and three injured people were being treated in hospitals after the attack, which unfolded just yards from the site of a deadly 2017 van and knife rampage.

Health officials said one of the injured was in critical but stable condition, one was stable and the third had less serious injuries.

Police said Khan was convicted in 2012 of terrorism offenses and released in December 2018 鈥渙n license,鈥 which means he had to meet certain conditions or face recall to prison. Several British media outlets reported that he was wearing an electronic ankle bracelet.

Basu said Khan was attending a London event hosted by Learning Together 鈥 a Cambridge University-backed program that works to educate prisoners 鈥 when he launched the attack, killing a man and a woman and injuring three others.

The attacker鈥檚 history will raise difficult questions for Britain鈥檚 government and security services. Neil Basu, the London police counterterrorism head, said police were not actively looking for any other suspects.

Prime Minister Boris Johnson said he had 鈥渓ong argued鈥 that it was a 鈥渕istake to allow serious and violent criminals to come out of prison early.鈥

鈥淚t is very important that we get out of that habit and that we enforce the appropriate sentences for dangerous criminals, especially for terrorists, that I think the public will want to see,鈥 he said.

Johnson, who chaired a meeting of the government鈥檚 COBRA emergency committee late Friday, said more police would be patrolling the streets in the coming days 鈥渇or reassurance purposes.鈥

The violence erupted less than two weeks before Britain holds a national election. The main pollical parties temporarily suspended campaigning in London as a mark of respect.

Metropolitan Police counterterrorism chief Neil Basu said the suspect appeared to be wearing a bomb vest but it turned out to be 鈥渁 hoax explosive device.鈥

Dick, the police chief, said officers were called just before 2 p.m. to Fishmongers鈥 Hall, a conference venue at the north end of London Bridge. The pedestrian and vehicle bridge links the city鈥檚 business district with the south bank of the River Thames.

Learning Together was holding a conference there on Friday. Cambridge Vice Chancellor Stephen Toope said he was 鈥渄evastated to learn that today鈥檚 hateful attack on London Bridge may have been targeted at staff, students and alumni attending an event organized by the University of Cambridge鈥檚 Institute of Criminology.鈥

Minutes after the stabbings report, witnesses saw a man with a knife being wrestled to the ground by members of the public on the bridge before armed-response officers shot him dead.

Video images showed people spraying the fleeing suspect with a fire extinguisher, while another passer-by held what appeared to be a long white stick. Witness Amy Coop, who was at the Fishmongers鈥 Hall, said it was a narwhal tusk the man had grabbed from a wall before going to confront the attacker.

One video posted on social media showed two men struggling on the bridge before police pulled a man in civilian clothes off a black-clad man on the ground. Gunshots followed. Another depicted a man in suit and overcoat holding a long knife that apparently had been taken from the attacker.

Karen Bosch, who was on a bus crossing the bridge, said she saw police 鈥渨restling with one tall, bearded man鈥 and then heard 鈥済unshots, two loud pops.鈥

She said the man 鈥減ulled his coat back which showed that he had some sort of vest underneath, whether it鈥檚 a stab vest, or some sort of explosive vest, the police then really quickly moved backwards, away.鈥

Another bus passenger, Amanda Hunter, told the BBC that the vehicle 鈥渁ll of a sudden stopped and there was commotion and I looked out the window and I just saw these three police officers going over to a man.鈥

鈥淚t seemed like there was something in his hand, I鈥檓 not 100% sure, but then one of the police officers shot him.鈥

Police confirmed that the man died at the scene.

The mayor praised the 鈥渂reathtaking heroism of members of the public who literally ran towards danger not knowing what confronted him.鈥

鈥淭hey are the best of us,鈥 Khan said.

Cars and buses on the busy bridge stood abandoned after the shooting, with a white truck stopped diagonally across the lanes. Video footage showed police pointing guns at the truck before moving to check its container.

London Bridge station, one of the city鈥檚 busiest rail hubs, was closed for several hours after the attack.

Scores of police, some armed with submachine guns, ushered office workers and tourists out of the area packed with office buildings, banks, restaurants and bars. Staff in nearby office blocks were told to stay inside.

As police cleared the streets, staff in shops and restaurants ushered customers into storerooms and basements. Some had been through similar traumatic events in June 2017, when eight people died in the van and knife attack launched by three people inspired by the Islamic State group. The attackers ran down people on the bridge, killing two, before fatally stabbing several people in nearby Borough Market.

That fatal attack took place days before a general election. Britons are due to go to the polls again on Dec. 12.

Political leaders expressed shock and sorrow at Friday鈥檚 attack.

鈥淲e will not be cowed by those who threaten us,鈥 Labour Party leader Jeremy Corbyn said. 鈥淲e must and we will stand together to reject hatred and division.鈥

Both Labour and the Conservatives suspended campaigning in the city after the attack and the prime minister was also canceling political events for Saturday.

Security officials earlier this month downgraded Britain鈥檚 terrorism threat level from 鈥渟evere鈥 to 鈥渟ubstantial,鈥 which means an attack is seen as 鈥渓ikely鈥 rather than 鈥渉ighly likely.鈥 The assessment was made by the Joint Terrorism Analysis Centre, an independent expert body that evaluates intelligence, terrorist capability and intentions.

The U.K.鈥檚 terror threat was last listed as 鈥渟ubstantial鈥 in August 2014; since then it has held steady at 鈥渟evere,鈥 briefly rising to 鈥渃ritical鈥 in May and September 2017.