A low tech device exploded during rush hour Monday morning at New York's Port Authority, the world's busiest bus terminal, injuring four people, including the man carrying the device.

The suspect, identified as 27-year-old Akayed Ullah, was taken into custody, city officials said. NYPD confirmed the suspect detonated what is believed to be a crude bomb in Port Authority. He and three others suffered injuries that are not life threatening, the NYPD said.

"This was an attempted terrorist attack," Mayor Bill de Blasio said at a news conference at the scene.

Ullah told investigators that he attempted the attack in the name of ISIS, a senior law enforcement official said to NBC News. The official says Ullah was angry over Muslims being killed around the world, adding that the suspect went online to watch ISIS propaganda and learn how to make explosives.

The New York Taxi and Limousine Commission told Reuters the suspect had a limousine's driver license from 2012 to 2015, which then expired. Ullah is from the Bangladeshi city of Chittagong and is a U.S. resident, the country's police chief said. He had no criminal record there and last visited Bangladesh on Sept. 8, according to Reuters.