State police say a 16-year-old boy has been charged with attempted murder after he fired an assault rifle at people playing basketball behind a Brooklyn church.

State police say the teen shooter had an AK-47 rifle, but was subdued by the basketball players who rushed the gunman and wrestled him to the ground Tuesday night.

Police say the shooting occurred shortly after the teen argued with the young people playing on the basketball court behind Our Lady of Lasalette Church.

Troopers say the boy allegedly bragged about having an AK-47 rifle and returned 10 minutes later dressed in black and opened fire.

The teen is being held on $250,000 bond on several charges.