PHOTO: WHDH
Now playing
02:12
Police: Man radicalized by ISIS shot, killed in Boston
PHOTO: WJW
Now playing
01:45
Man accused of plotting attack at parade
Armed police  operate in Saint-Denis, a northern suburb of Paris, Wednesday, Nov. 18, 2015. Police say two suspects in last week's Paris attacks, a man and a woman, have been killed in a police operation north of the capital. Two police officers have been injured in the standoff. Police have said the operation is targeting the suspected mastermind of last week's attacks, believed to be holed up in an apartment in Saint-Denis with several other heavily armed suspects. (AP Photo/Francois Mori)
PHOTO: Francois Mori/AP
Armed police operate in Saint-Denis, a northern suburb of Paris, Wednesday, Nov. 18, 2015. Police say two suspects in last week's Paris attacks, a man and a woman, have been killed in a police operation north of the capital. Two police officers have been injured in the standoff. Police have said the operation is targeting the suspected mastermind of last week's attacks, believed to be holed up in an apartment in Saint-Denis with several other heavily armed suspects. (AP Photo/Francois Mori)
Now playing
01:42
What to do in the event of a terror attack
psychology of terror sanjay gupta nws orig_00002811.jpg
PHOTO: ISIS
psychology of terror sanjay gupta nws orig_00002811.jpg
Now playing
01:25
The psychology of terror
LAS VEGAS, NV - OCTOBER 02:  An ambulance leaves the intersection of Las Vegas Boulevard and Tropicana Ave. after a mass shooting at a country music festival nearby on October 2, 2017 in Las Vegas, Nevada. A gunman has opened fire on a music festival in Las Vegas, leaving at least 20 people dead and more than 100 injured. Police have confirmed that one suspect has been shot. The investigation is ongoing. (Photo by Ethan Miller/Getty Images)
PHOTO: Ethan Miller/Getty Images
LAS VEGAS, NV - OCTOBER 02: An ambulance leaves the intersection of Las Vegas Boulevard and Tropicana Ave. after a mass shooting at a country music festival nearby on October 2, 2017 in Las Vegas, Nevada. A gunman has opened fire on a music festival in Las Vegas, leaving at least 20 people dead and more than 100 injured. Police have confirmed that one suspect has been shot. The investigation is ongoing. (Photo by Ethan Miller/Getty Images)
Now playing
02:46
Is it an act of violence or terror?
australia terror plot cabrera kayyem segment_00002218.jpg
PHOTO: Seven News
australia terror plot cabrera kayyem segment_00002218.jpg
Now playing
01:39
Four arrested in alleged airplane terror plot
Washington, UNITED STATES:  The terrorist threat advisory is seen 10 August, 2006 at Ronald Reagan National Airport, in Washington, DC. After Britain said 10 August it had thwarted a plot to wreak "mass murder" by the simultaneous mid-air bombings of planes to the United States, the US raised the threat level to "severe" or "Red" for all commercial flights flying from Britain to the United States, and "high" or "Orange" for all commercial aviation operating in the United States, including international flights.  AFP PHOTO / TIM SLOAN  (Photo credit should read TIM SLOAN/AFP/Getty Images)
PHOTO: TIM SLOAN/AFP/Getty Images
Washington, UNITED STATES: The terrorist threat advisory is seen 10 August, 2006 at Ronald Reagan National Airport, in Washington, DC. After Britain said 10 August it had thwarted a plot to wreak "mass murder" by the simultaneous mid-air bombings of planes to the United States, the US raised the threat level to "severe" or "Red" for all commercial flights flying from Britain to the United States, and "high" or "Orange" for all commercial aviation operating in the United States, including international flights. AFP PHOTO / TIM SLOAN (Photo credit should read TIM SLOAN/AFP/Getty Images)
Now playing
01:11
What FBI director wants Americans to know about terror
Investigators inspect a truck following a shooting incident in New York on October 31, 2017. 
Several people were killed and numerous others injured in New York on Tuesday when a suspect plowed a vehicle into a bike and pedestrian path in Lower Manhattan, and struck another vehicle on Halloween, police said. A suspect exited the vehicle holding up fake guns, before being shot by police and taken into custody, officers said. The motive was not immediately apparent.

 / AFP PHOTO / Don EMMERT        (Photo credit should read DON EMMERT/AFP/Getty Images)
PHOTO: DON EMMERT/AFP/Getty Images
Investigators inspect a truck following a shooting incident in New York on October 31, 2017. Several people were killed and numerous others injured in New York on Tuesday when a suspect plowed a vehicle into a bike and pedestrian path in Lower Manhattan, and struck another vehicle on Halloween, police said. A suspect exited the vehicle holding up fake guns, before being shot by police and taken into custody, officers said. The motive was not immediately apparent. / AFP PHOTO / Don EMMERT (Photo credit should read DON EMMERT/AFP/Getty Images)
Now playing
01:43
The vulnerability of 'soft targets' to terror
The operations center of the Terrorist Screening Center
PHOTO: Terrorist Screening Center
The operations center of the Terrorist Screening Center
Now playing
05:20
An exclusive look inside the Terrorist Screening Center
From the left, British businessman Chris Norman,  Anthony Sadler, a senior at Sacramento University in California, French President Francois Hollande, U.S. Airman Spencer Stone, and Alek Skarlatos a U.S. National Guardsman from Roseburg, Oregon pose at the Elysee Palace, Monday Aug.24, 2015 in Paris, France. Hollande  pinned the Legion of Honor medal on U.S. Airman Spencer Stone, National Guardsman Alek Skarlatos, and their years-long friend Anthony Sadler, who subdued the gunman as he moved through the train with an assault rifle strapped to his bare chest. The British businessman, Chris Norman, also jumped into the fray. (AP Photo/Michel Euler, Pool)
PHOTO: Michel Euler/AP
From the left, British businessman Chris Norman, Anthony Sadler, a senior at Sacramento University in California, French President Francois Hollande, U.S. Airman Spencer Stone, and Alek Skarlatos a U.S. National Guardsman from Roseburg, Oregon pose at the Elysee Palace, Monday Aug.24, 2015 in Paris, France. Hollande pinned the Legion of Honor medal on U.S. Airman Spencer Stone, National Guardsman Alek Skarlatos, and their years-long friend Anthony Sadler, who subdued the gunman as he moved through the train with an assault rifle strapped to his bare chest. The British businessman, Chris Norman, also jumped into the fray. (AP Photo/Michel Euler, Pool)
Now playing
02:08
Train heroes honored for thwarting attack
PHOTO: shutterstock
Now playing
01:56
Is this terror or a mass killing?
terror attack vulnerabilities brown dnt tsr_00013715.jpg
terror attack vulnerabilities brown dnt tsr_00013715.jpg
Now playing
01:41
How vulnerable are citizens to terror attacks?
In this photo provided by Christina Cathleen Coons, a person lies on the floor after an incident on a high-speed train traveling from Amsterdam to Paris on Friday, Aug. 21, 2015. A gunman opened fire on the train wounding several people before American passengers subdued him, according to officials and one of the Americans involved. (Christina Cathleen Coon via AP)
PHOTO: AP
In this photo provided by Christina Cathleen Coons, a person lies on the floor after an incident on a high-speed train traveling from Amsterdam to Paris on Friday, Aug. 21, 2015. A gunman opened fire on the train wounding several people before American passengers subdued him, according to officials and one of the Americans involved. (Christina Cathleen Coon via AP)
Now playing
01:04
Exclusive cell phone video from inside train
tsr dnt scuitto ISIS plots thwarted_00005604.jpg
tsr dnt scuitto ISIS plots thwarted_00005604.jpg
Now playing
01:41
FBI: Several July 4th terror attacks thwarted
isis in america north carolina teen arrested sciutto dnt tsr _00001312.jpg
isis in america north carolina teen arrested sciutto dnt tsr _00001312.jpg
Now playing
01:43
American teen arrested in alleged ISIS plot
PHOTO: WHDH
Now playing
02:12
New details released in Boston terror plot

Story highlights

Brother identifies suspect who was fatally shot as Usaama Rahim

Man under investigation for possible threats against police officers, says police commissioner

Federal agent and Boston officer fired at man, official says

(CNN) —  

A man who waved a large military knife at officers and is believed to have been radicalized by ISIS was shot and killed by police in Boston on Tuesday, according to officials.

The suspect, identified as Usaama Rahim, 26, was under 24-hour surveillance by anti-terrorism authorities, said FBI Special Agent in Charge Vincent B. Lisi.

Later Tuesday, authorities arrested a second man in connection with the case. The U.S. Attorney’s Office in Boston identified him as David Wright. He will appear in Boston federal court Wednesday, spokeswoman Christina Sterling said.

“As of right now, we don’t think there is any concern for public safety,” Lisi said.

Rahim was a subject of a terror investigation involving suspected Islamist extremists, law enforcement sources said.

“We believe he was a threat,” Boston Police Commissioner Williams Evans said. “He was someone we were watching for quite some time.”

Rahim had been under surveillance by the U.S. Joint Terrorism Task Force, officials said.

Ibrahim Rahim, an imam at the Lighthouse Mosque in Oakland, California, earlier posted about his brother’s death on social media.

Police released this image of military knife Usaama Rahim allegedly waved at officers before he was fatally shot Tuesday.
PHOTO: Boston Police
Police released this image of military knife Usaama Rahim allegedly waved at officers before he was fatally shot Tuesday.

Ibrahim Rahim wrote on Facebook that his brother was shot while at a bus stop on his way to work. He asked for prayers for his brother.

In a 2013 interview with CNN, Ibrahim Rahim voiced his objection to presiding over the funeral of Boston Marathon bomber Tamerlan Tsarnaev.

“We don’t want people looking at us as though we are empathetic in any way to what has happened at the hands of this man and his brother,” he said at the time.

Ibrahim Rahim said his brother was on the phone with their father and was shot three times in the back during the confrontation.

In a statement, the Islamic Society of Boston said police have invited Muslim leaders Wednesday to watch surveillance video of the shooting.

“As religious institutions serving the Boston Muslim community, the Islamic Society of Boston (ISB) and Islamic Society of Boston Cultural Center (ISBCC) leadership are saddened to hear of the shooting of Usaama Rahim,” the statement said. “This tragedy has yielded many important questions that merit additional attention, and while we cannot expect all questions to be answered … our hope is that greater clarity and transparency will bring some peace to our congregation and the Boston community at large.”

The ISBCC said that it had had a limited relationship with Rahim. A security firm it uses to provide security at the center hired him as a guard for a month in 2013. Rahim did not regularly pray at the center, nor volunteer or serve in any leadership position, the center said.

The FBI-led task force had been watching Rahim and two associates also believed to be radicalized, according to a law enforcement official. Rahim had been monitored for at least a couple of years. Investigators were talking to the associates, and various locations in Massachusetts and Rhode Island were being searched, officials said.

The FBI noted a recent change in the suspect’s behavior, including social media threats against police, which prompted agents to try to approach him Tuesday, according to the official.

Evans said the shooting occurred about 7 a.m. after officers and FBI agents confronted Rahim, who suddenly turned around with a large black knife and lunged at officers and federal agents. The officers had not drawn their weapons at that point.

The officers retreated and ordered the man to put down the weapon before they opened fire, Evans said. The shooting was captured by surveillance video and observed by witnesses.

“Unfortunately, he came at the officers and, you know, they do what they were trained to do and, unfortunately, they had to take a life,” Evans said.

Rahim was struck in the torso and abdomen.

A Boston police officer and a federal agent opened fire on the suspect, Evans said.

The shooting is under investigation.

CNN’s Lorenzo Ferrigno, Camillie Cava and Lawrence Crook III contributed to this report.