Peter Carvalho was ordered held without bail at his arraignment Thursday.

Prosecutors said the 25-year-old victim, Shannon Richardson, was shot several times as he walked on Dudley street Wednesday afternoon, then collapsed in a nearby store. He was taken to a hospital, where he was pronounced dead.

Prosecutors said witnesses described Richardson’s attacker. Patrol officers later saw Carvalho running and pursued him when they got a radio call about a shooting. He went into the same store where Richardson lay.

The Boston Globe reports that Richardson’s mother wept during the court hearing. Some relatives and friends of both men said afterward they were friends who wouldn’t have been violent toward each other.