Follow CBSMIAMI.COM: Facebook | Twitter

MIAMI (CBSMiami) – A terror suspect shot and killed Tuesday in the Boston area had ties to South Florida.

Usama Rahim, who had been under around the clock surveillance by federal investigators, was licensed as a security officer in Miami as recently as two years ago.

Boston police and FBI agents shot Rahim, 26, when he reportedly lunged at them with a knife when they tried to stop him for questioning in a parking lot.

“At some point, the individual’s proximity came close so that the officers were in danger – their lives were in danger. When two officers discharged their weapons,” said Boston police Commissioner William Evans.

CLICK HERE to watch CBS4’s report

Police also announced that a man who had been in contact with Rahim had been taken into custody. David Wright was arrested in Everett, just outside of Boston.

CBS News sources say Wright and Rahim had communicated about attacks in the U.S. An official briefed on the investigation said Rahim was radicalized online by ISIS. He had been on the radar of investigators for the last several months and under 24-hour surveillance for the last three weeks.

Recent intelligence bulletins have warned bout homegrown violent extremists influenced by ISIS’ online propaganda which urges attacks against law enforcement and the military. A federal law enforcement source told CBS News that investigators believed Rahim wanted to target police.