NEW YORK (AP) _ A teen-ager angry over a slight to his girlfriend allegedly lured four youths to a schoolyard and shot them, killing two and injuring the others, according to police.

The four Bronx teen-agers were forced to kneel before they were shot Saturday night, police said. Louis Perez, 17, surrendered Sunday, police said.

Perez was charged with two counts of murder, two counts of attempted murder, criminal possession of a firearm and criminal use of a firearm, police spokesman Anthony Mazzola said.

Detective Capt. John Creegan said police believe Perez was upset because one or more of the four teen-agers had slighted a 13-year-old girl he was dating.

Witnesses said the four were playing basketball at a public school when Perez, who was with two friends, came up and offered a marijuana cigarette, Creegan said.

The group went down steps to the back door of the school, where police found 18 spent bullet casings, Creegan said.

Nelson Rivera, 15, died at the scene, Mazzola said. Carlos Young, also 15, died a short time later at Jacobi Hospital, police said.

A third 15-year-old was shot in the legs and reported in good condition. His name was not released because of his age. Manuel Allende, 18, was shot in the stomach and leg and was in guarded condition at Jacobi, authorities said.

The two youths that accompanied Perez were not charged in the shootings, police said.