A man inspired by the Islamic State group set off a crude pipe bomb strapped to his body Monday in a crowded subway corridor near Times Square, injuring the man, slightly wounding three others and sending New York commuters fleeing in terror through the smoky passageway.