A teenager was shot, several school buses were set on fire and four people were slashed or stabbed as tens of thousands of people swarmed the area around Madison Square Garden in a chaotic, all-night celebration of the Knicks’ championship win late Saturday, according to the police and video footage.

In all, 15 people were arrested, including a 28-year-old man who was charged with assault for punching a police officer, officials said. Another 48 people were taken into police custody and issued summonses, the police said.

The teenager, who is 17, was shot in the foot and is expected to survive, according to the police. At least one person was charged with carrying a gun, the police said.

The violence erupted shortly after the Knicks clinched the win over the San Antonio Spurs. Some revelers began scaling light poles, traffic lights and scaffolding, while others climbed on top of buses and set off fireworks, as the crowd fanned out between Fifth and Ninth Avenues and traveled at least 10 blocks north into Times Square.

This is a developing story. Check back for updates.