A man who drove a car along three blocks of pavement in New York's Times Square, killing a teenager and injuring 22 people, said he had "heard voices", according to law enforcement sources.
Richard Rojas, 26, a US navy veteran who was arrested twice previously for drunk driving, is now in custody.
He also said he expected to die, the sources told AP news agency.
According to Reuters, he said after being arrested: "You were supposed to shoot me! I wanted to kill them."
Mr Rojas has been charged with second-degree murder, aggravated vehicular homicide and multiple counts of attempted murder. He is expected to appear in court later on Friday.
The streets in Times Square, a bustling tourist district, were thronged with visitors when the car ploughed through the crowds. The burgundy Honda sedan jumped the kerb at 45th Street and Broadway at 11:55 local time (15:55 GMT) and drove at high speed for three blocks before crashing into a pole.
It came to a crumpled standstill with smoke and flames escaping the bonnet.
Afterwards, victims lay on the ground, many of them separated from their scattered shoes and belongings, as medical staff, police officers and passersby tried to assist them.
One pregnant woman at the scene said: "A man pulled me out of the way of the car. I think he saved my life."
Media reports say a ticket agent and a worker at Planet Hollywood restaurant were among the people who helped police subdue and detain Mr Rojas.
The Planet Hollywood worker, Ken Bradix, told Associated Press: "He began screaming, no particular words but just utter screaming. He was swinging his arms at the same time. There was something wrong with him."
The incident evoked recent terrorist attacks by vehicle in London, Nice and Berlin but New York mayor Bill de Blasio said there was "no indication" it was an act of terrorism.
What do we know of Rojas?Police believe he was high on synthetic marijuana, known as K2, ABC News reports, citing law enforcement sources. Initial tests reportedly came back negative for alcohol but positive for drugs.