A white US Army veteran with a hatred for black people travelled to New York City and confronted a black man before killing him with a sword, police say.
James Harris Jackson, 28, is said to have taken a bus from Baltimore to New York with the intention of targeting black men.
When he came across Timothy Caughman, 66, he allegedly stabbed him in the chest and back.
Mr Caughman was pronounced dead in hospital.
His alleged assailant walked into a Times Square police station about 24 hours later and was arrested on suspicion of murder.
He is said to have told officers that he had harboured feelings of hatred towards black men for at least 10 years.
The ex-serviceman is believed to have travelled to New York on 17 March, and booked himself into a Manhattan hotel.
Assistant Chief of Police William Aubry said he had walked the streets in a long coat, which hid the 26in (66cm) sword, and came across Mr Caughman while the victim was collecting bottles for recycling from rubbish bins.
"The reason he picked New York is because it's the media capital of the world and he wanted to make a statement," Mr Aubry said.
Investigators said they believed the suspect was considering other attacks, but surrendered after noticing his photo in media reports. He had been captured on CCTV footage near the crime scene.
James Harris Jackson served in the US Army from March 2009 to August 2012 and worked as a military intelligence analyst, the army said. He was deployed in Afghanistan from December 2010 to November 2011.