At least 34 people were injured in a derailment that caused chaotic, smoky conditions at a Manhattan station and halted subway service on several lines Tuesday.