A Brooklyn man allegedly scrawled 'Go home, Uzbeks' on the wall of his apartment building hallway in response to the terrorist attack by Uzbek national Sayfullo Saipov (above)

A Brooklyn man who allegedly scrawled 'Go home, Uzbeks' on the wall of his apartment building hallway was arrested on Wednesday.

Dmitriy Gekhman, a 28-year-old Ukrainian national, was taken into custody after he also allegedly scribbled 'F***ing Uzbeks, go home' one day after Tuesday's deadly car-ramming attack in Manhattan.

Sayfullo Saipov, a Muslim immigrant from Uzbekistan, was arrested Tuesday after he ploughed a rented truck into a group of bikers riding on a bike path in Tribeca.

Eight people died and 12 were injured in the attack, which authorities believe was inspired by ISIS propaganda.

Police arrested Gekhman after watching surveillance video alleged to show him leaving his apartment and scrawling the messages Wednesday night.

News of the arrest was first reported by the New York Daily News.

Investigators questioned the building's superintendent, who identified the man seen in the video as Gekhman.

Gekhman faces charges of criminal mischief as a hate crime and making graffiti.

President Donald Trump on Thursday reiterated his call that Saipov should get the death penalty.

Saipov, told investigators he was inspired by watching Islamic State videos and began planning Tuesday's attack a year ago, according to the criminal complaint filed in federal court against him on Wednesday.

Saipov, a Muslim immigrant from Uzbekistan, was arrested Tuesday after he ploughed a rented truck into a group of bikers riding on a bike path in Tribeca

Eight people died and 12 were injured in the attack, which authorities believe was inspired by ISIS propaganda. People are seen above placing flowers at a makeshift memorial at the scene of the attack

Saipov, 29, said 'he felt good about what he had done' and asked for permission to display the flag of the militant group Islamic State in his hospital room, the complaint said.

Trump had suggested on Wednesday sending Saipov to the Guantanamo Bay military prison in Cuba, where terrorism suspects apprehended overseas are held, but on Thursday he said doing so would be too complicated.

'Would love to send the NYC terrorist to Guantanamo but statistically that process takes much longer than going through the Federal system,' Trump said on Twitter.

He added: 'There is also something appropriate about keeping him in the home of the horrible crime he committed. Should move fast. DEATH PENALTY!'

One of the two charges Saipov faces, violence and destruction of motor vehicles causing the deaths of eight people, carries the death penalty if the government chooses to seek it, acting US Attorney Joon Kim said.