A 24-year-old homicide suspect was arrested early Sunday after he allegedly shot a man in Northwest Washington and was then detained by witnesses until police got there.

Alexis Pineda, whose address was not immediately available, allegedly shot Jose Hernandez-Romero, also 24, in the 1200 block of 11th Street NW shortly before 2 a.m.

“When officers arrived at the scene, they found the suspect being restrained by witnesses to the shooting,” D.C. police said in a statement.

Hernandez-Romero, of the 1400 block of N Street NW, died a few hours later at a hospital. Pineda was charged with second-degree murder.

The motive for the shooting was unclear.