NYPD has identified the Marines, Army, and lawyer who stopped the New York City bomber

Twitter/@papd911

Early Monday morning in New York City an explosion at Port Authority now known to be an attempted terrorist attack sent commuters scrambling. But Officers Jack Collins, Sean Gallagher, Drew Preston and Anthony Manferdini were on the scene and took down Akayed Ullah, 27, swiftly.

Videos by Rare

We now know their faces, but we also know a little more about their backgrounds.

Left to right is pictured Sean Gallagher, 26, Drew Preston, 36, Jack Collins, 45, and Anthony Manfredini, 28.

Gallagher and Manfredini are Marines, the latter a bomb tech, Preston served three tours in the Army and Collins is a lawyer.

Surveillance cameras captured the Ullah walking casually through the crowded passageway when the bomb suddenly went off at 7:20 a.m. amid plume of white smoke, which cleared to show the man sprawled on the ground and commuters fleeing in terror. Investigators said it was not clear if the bomb was set off intentionally or went off prematurely.

RELATED: Who the family of the NYC bomber is focusing on in all of this is a major head-scratcher

https://twitter.com/Breaking911/status/940208375396290561?ref_src=twsrc%5Etfw&ref_url=https%3A%2F%2Fwww.cbsnews.com%2Fnews%2Fport-authority-bus-terminal-explosion-bomb-2017-12-11-live-stream-updating%2F

“This was an attempted terrorist attack,” Mayor Bill de Blasio told reporters. “Thank God the perpetrator did not achieve his ultimate goals.”

The suspect was being treated at a hospital for burns to his hands and abdomen. The others who were injured suffered ringing in the ears and headaches.

Former NYPD commissioner Bill Bratton went on MSNBC this morning and relayed preliminary police information, saying the man arrested was in his mid-20s, from Bangladesh, has been living in America for several years and attempted the attack in the name of ISIS.

Mayor Bill de Blasio said at a press conference that this was an attempted terrorist attack.

Police have identified the man in custody as 27-year-old Akayed Ullah.

https://twitter.com/katiezavadski/status/940230522386644992

Here is our first look at him:

Law enforcement officials said Ullah was inspired by the Islamic State group but had apparently not had any direct contact with the group.

Four people other than the bomber were also injured when the explosion happened, police said.

The suspected bomber came to the U.S. in Feb. 2011 on an immigrant visa, CBS News reported. He did not have a criminal record, is a legal permanent resident and had lived in Brooklyn.

RELATED: Police confirm identity of New York bomber

The Associated Press contributed to this report.

What do you think?

“I will f—–g kill everybody!”: Woman lashes out on plane after sneaking bathroom cigarette

Mother of viral bullied boy responds to vicious backlash over confederate flag photo