Bystanders embrace at the scene of a shooting in Southeast D.C. (Linda Davidson/THE WASHINGTON POST)

A counselor, a man in his 40s who was with the boys — who were ages 7 and 8 — was also shot, police said. None of their injuries are considered life-threatening. Police were still seeking both men Monday evening.

Joel Maupin, commander of the Metropolitan Police Department’s 7th District, said the boys were in a group of about 30 children lined up for the program near the intersection of Savannah and 19th Streets about 12:30 p.m.

About 50 yards away, on a grassy hill in front of an apartment building, one male began firing shots at another male, Maupin said. The target fled in the direction of the children, Maupin said.

Maupin said the 7-year-old was struck in the back of his right shoulder and was in serious condition. The 8-year-old was hit in his right ankle, and the counselor was struck in his left thigh.

Police said that as the incident was unfolding, someone ushered the children into an apartment building across the street.

This item has been updated.

Read more: The Post’s crime coverage