A tip from the FBI triggered what Canadian police on Thursday called a "race against time" as police scrambled to identify and locate a balaclava-wearing would-be suicide bomber they feared was on the verge of committing a terror attack in Canada.\nThe Royal Canadian Mounted Police said Aaron Driver, a Canadian man previously banned from associating with Islamic State extremists, prepared a martyrdom video and was about to commit a terrorist attack but was killed Wednesday in southern Ontario after he detonated his explosive device in a taxi and was shot at by officers.\nPolice said they were tipped off by the American authorities at 8:30 a.m. Wednesday. The FBI provided a screen shot and later a video of the masked suspect threatening a terror attack. By 11 a.m., Canadian police said they had a good idea who it was.\nDriver planned to carry out a suicide bombing in a public area in an urban center during rush hour, Deputy Royal Canadian Mounted Police Commander Mike Cabana said. He identified the suspect as Driver, 24, originally from Winnipeg, Manitoba.\nRCMP Commander Jennifer Strachan said Driver was intercepted by police as he entered a taxi with a backpack and said Driver detonated an explosive device, injuring himself and the taxi driver, before police shot at him. It was unclear whether Driver died as a result of the shrapnel or a police bullet.\nAfter being tipped off by the FBI, Canadian police furiously worked to find out who it was. Police said Driver was quickly identified as the person in the so-called martyrdom video and that he planned an attack within 72 hours.\n"It was a race against time," Cabana said.\nIn the video, aired during a news conference in Ottawa, a masked Driver is seen railing against western "enemies of Islam" and warning that the only solution would be the "spilling of your blood." He pledges allegiance to Abu Bakr al-Baghdadi, the Islamic State leader, and threatens an attack against Canada.\nDriver had been under the spotlight for at least a year, as authorities believed he was a threat because he could help terror groups. He gave a media interview where he expressed support for prior terror attacks in Canada and expressed interest in travelling to join the Islamic State. But Driver, who was living with his sister, was not under surveillance at the time. Police swooped down on the home just before a taxi suddenly showed up and Driver got in.\nThe police operation involving Driver took place Wednesday night in the southern Ontario town of Strathroy, 140 miles (225 kilometers) southwest of Toronto.\n"If he had gotten out of that residence before we got there, the scenario would have ended a lot differently. I'm positive of that," Strachan said.\nTransit agencies in Toronto, Canada's largest city, were warned of a security threat before police confronted the suspect. Brad Ross, spokesman for the Toronto Transit Commission, said the agency was made aware of a terror threat investigation early the previous day, but noted that it had no specifics attached.\nHe said that as a precaution a "vigilance notice" was issued to all staff, encouraging them to speak up if they saw something of concern. Regional transit lines were also advised of a security threat.\n"This case is an example of the strong cross-border law enforcement cooperation that exists between Canada and the United States.\u00a0Our partnership reflects our joint commitment to protecting the safety of our citizens," U.S. Ambassador to Canada Bruce Heyman said in a statement.\nCanadian Public Safety Minister Ralph Goodale thanked the FBI on Thursday and said he spoke with U.S. Attorney General\u00a0Loretta Lynch.\nAmarnath Amarasingam, a post-doctoral fellow at Dalhousie University who studies radicalization and terrorism, maintained in 2015 that Driver had posted for several months on social media about disliking Canada and about a desire to move overseas.\nDriver was first picked up in Winnipeg in June 2015.\nHe was under a court order from earlier this year to not associate with any terrorist organization, including the Islamic State group. In February, Driver's lawyer and the prosecutor agreed to a peace bond, which imposes limits on a person's activities, stating there are "reasonable grounds to fear that he may participate, contribute directly or indirectly in the activity of a terrorist group."\nWhen Driver was released he was ordered to wear a GPS tracking device and banned from going on the internet or having any communication with the Islamic State group, including wearing or carrying anything with an IS logo.\nHis bail conditions drew criticism from the Manitoba Association of Rights and Liberties. Later, the government announced that some of his strict bail conditions had been lifted and that he would not be going to trial.