The Shamshad news agency said "aerial shooting" in Kabul on Friday killed 17 people and wounded 41. Tolo news agency gave a similar toll.
At least 14 people were injured in celebratory firing in Nangarhar province east of the capital, said Gulzada Sangar, spokesman for an area hospital in the provincial capital of Jalalabad.
The gunfire drew a rebuke from the main Taliban spokesman, Zabihullah Mujahid.
"Avoid shooting in the air and thank God instead," Mujahid said in a message on Twitter. "Bullets can harm civilians, so don't shoot unnecessarily."