A man due in court next week for a probation hearing has been arrested on charges involving the firing of a pellet gun at two school buses, one carrying a student, in Southeast Washington.

Neither the student nor the drivers and school staff members on board were injured when the buses were struck late Tuesday afternoon at Alabama Avenue and 18th Street SE. Several windows were damaged, police said.

James Doby, 21, of Southeast Washington was charged with multiple counts of assault with a dangerous weapon. Police said he was arrested at his home, near the site of the shootings, shortly after the second bus was struck.

Officer Araz Alali, a D.C. police spokesman, said the first shooting occurred about 5:15 p.m. Alali was unable to say whether the bus was in motion. One special-needs student, the driver and several staff members were on the bus at the time, he said.

The pellets damaged at least one window, causing about $1,500 in damage. Alali could not say whether the window broke or was punctured by the pellets.

About 15 minutes later, Alali said, a second bus in nearly the same spot was hit by pellet fire. Staff members were on board with the driver, but there were no students.

Authorities would not say from what school the buses had come. A spokeswoman for the Office of the State Superintendent of Education, which oversees D.C. school buses, declined to comment and referred all questions to police.

Doby had been sentenced in November to 24 months of probation for failing to appear in court several times in a case involving marijuana possession, according to court records.

While serving probation, he was arrested in December and charged with possession of a dangerous weapon and assault, court records show. He was scheduled to appear at a hearing Tuesday in D.C. Superior Court to determine whether that arrest violated the terms of his release.