Two teenagers are charged in the shooting outside a Maryland high school Monday evening.

A 17-year-old Oxon Hill High School student got into an SUV with the suspects about 5:15 p.m. and was shot in what appears to have been a robbery attempt, Prince George’s County police said. He went into the school for help, and someone called 911 about 5:15 p.m.

Police charged 17-year-old Zanaya Bryant and 18-year-old Anthony Hollingsworth with attempted murder and related charges. The victim knew the suspects, police said.

The victim was taken to a hospital and was released several hours later, police said.

There were school activities going on at the time of the shooting, but the incident occurred on the other side of the campus.