NEW YORK CITY, April 13 (Aljazeera) - A man who was wanted in connection with a shooting on a New York City subway train has been apprehended after a 30-hour manhunt, officials announced.

Frank R James was taken into custody in the East Village neighbourhood of Manhattan on Wednesday afternoon, New York City Police Commissioner Keechant Sewell said.

“We hope this arrest brings some solace to the victims and the people of the city of New York,” Sewell told reporters during a news conference.

The attack on Tuesday morning sent shock waves across the United States’ largest city, where millions of people take the subway every day.

An attacker set off smoke bombs aboard a subway train at around 8:30am local time (12:30 GMT), then opened fire with a handgun, shooting 23 times.

Ten people were injured by gunfire while another 13 were hurt by the smoke or in the panic to get out of the train following the shooting, New York authorities said. None of the gunshot injuries was life-threatening, officials said.

James faces a federal charge of a “terrorism” attack on mass transportation, officials said, which carries a life sentence if convicted.