NEW YORK (AP) — Police have identified the 27-year-old man who detonated an explosive device strapped to his body in the New York City subway.

Police say Akayed Ullah intentionally exploded the crude device in a passageway under Times Square during the morning rush hour Monday. They say he is in custody. They say the device is a crudely-made pipe bomb.

RELATED: Official: Man Had Explosive Device Strapped On Before NY Subway Blast | Suspect In Custody After Blast Near NY Port Authority | Live Coverage From CBS New York | Videos: Explosion Under Bus Terminal

Authorities called the incident an attempted terrorist attack. Three others suffered minor injuries, including headaches and ringing in the ears.

The suspect had burns on his abdomen and also to his hands.

Law enforcement officials say he was inspired by the Islamic State, but had apparently not had any direct contact with the terror group.

(TM and © Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)