NEW YORK – A Ukrainian-born graffiti artist who went on a 28-hour stabbing rampage that took the lives of his stepfather, his ex-girlfriend and her mother was arrested Saturday at a subway stop in Times Square after slashing a man on a train, police said.

Maksim Gelman, 23, is also accused of running down a 62-year-old man while driving a stolen Lexus, one of two cars Gelman hijacked a day earlier, Commissioner Raymond Kelly told a news conference. The pedestrian died later at a hospital.

Gelman was taken into police custody around 9 a.m. Saturday after a nightlong manhunt across New York City.

“It’s so horrendous and bizarre. We have no reason to know why he did this,” said Kelly.

The bloody rampage started just after 5 a.m. Friday, when police say Gelman fatally knifed his stepfather, Aleksandr Kuznetsov, at their apartment in Brooklyn. Kuznetsov was attacked after intervening in a fight between Gelman and his mother over the use of her Lexus, Kelly said.

Gelman then drove off in the Lexus, hitting the 62-year-old pedestrian, police said.

Around 10:30 a.m., Gelman entered the home of his ex-girlfriend and used a kitchen knife to fatally stab her mother, 56-year-old Anna Bulchenko, Kelly said. When her daughter, 20-year-old Yelena Bulchenko, arrived home around 4 p.m., Gelman chased her out and stabbed her to death, Kelly said.

Gelman stabbed the drivers of two cars he carjacked and the train passenger before being arrested at Times Square.