A Brooklyn man accused of killing an 86-year-old and injuring three others in a series of shootings while riding a scooter in New York City appeared before a judge by video Monday to formally faces charges of murder, attempted murder, and criminal possession of a weapon, prosecutors said.

Thomas Abreu, 25, was arraigned in a hospital Monday for the six shootings that occurred over several city blocks in Brooklyn and Queens on Saturday, according to a spokesperson for Queens District Attorney Melinda Katz. Five shootings took place in Queens where three people were shot and an additional victim was shot in Brooklyn.

“The streets of two boroughs were turned into scenes of terror as this defendant allegedly rode his scooter, shooting indiscriminately at pedestrians and others,” Katz said in a statement.

Abreu did not enter a plea and he was being held without bail in the hospital, WABC-TV reported. Abreu was arrested without incident later Saturday based on witness statements and surveillance footage, prosecutors said.

Abreu was charged with murder, two counts of attempted murder, and six counts of criminal possession of a weapon, according to the New York City Police Department. The suspect had one prior arrest, Joseph Kenny, assistant chief of the Detective Bureau, said.

Police have said a motive for the attack was not yet known but the incident appeared to be a random act and the suspected gunman did not specifically target anyone.

“It seems that his acts were random,” Kenny said Saturday. “Video shows that he’s not targeting anybody, he’s not following anybody. As he’s driving on his scooter, he’s randomly shooting people.”