KABUL, Afghanistan — The annual celebration of Afghanistan’s official national hero, Ahmed Shah Massoud, descended into violence and ethnic tensions again as his armed supporters began marauding through the streets here, officials said Thursday.

At least two people were killed, one of them an officer of the National Directorate of Security, the Afghan intelligence service, and at least five were wounded on Wednesday, Afghan officials said. Heavily armed young men in convoys of cars, pickup trucks and motorcycles — mostly from Mr. Massoud’s native Panjshir Valley — roared through Kabul, the capital, with posters of the Tajik war leader, and in at least two places they tried to attack neighborhoods belonging to rival ethnic groups, according to Afghan official accounts on Thursday.

In one episode that generated outrage, an emergency room doctor, Mirwais Hemat, was beaten down with rifle butts and ended up with a broken neck and nose after a group of men described by doctors as Panjshiris decided he was not suturing one of their comrade’s wounds quickly enough, according to witnesses and hospital officials.

Mr. Massoud was a prominent leader of the mujahedeen resistance against the Soviets and, later, the Taliban. He was the military leader of the Northern Alliance at the time of his assassination by suicide attackers from Al Qaeda just before the Sept. 11, 2001, terrorist attacks.