Two students were shot outside a public high school in Maryland on Wednesday night while a basketball game was being played inside, police said.

The Frederick High School students were flown to a hospital in Baltimore with injuries not believed to be life-threatening, Frederick, Maryland, Capt. Richard Hetherington said. He did not know the students' ages or genders, and he said the shooter or shooters were still at large late Wednesday.

Two junior varsity basketball games were going on at the time of the shooting, said Frederick County public schools spokesman Michael Doerrer.

Officers took about 200 people who were at the game into the school cafeteria, secured the building and questioned witnesses, Hetherington said. He said the students were being released to their parents at a nearby bowling alley.

Tanika Mayweather, whose 15-year-old son Lawrence was playing in the basketball game, said, "I know he's OK, because he called." She said she's not going to let her son play basketball for the school anymore. "We'll have our basketball games out in the park," she said.

Sean Noah, 16, attends another high school but was in the building for swimming practice. He said he didn't hear any shots. Afterward, he was kept inside for about 45 minutes.

Frederick County Public Schools officials tweeted that all other staff and students were safe and accounted for.

Frederick High School, on the city's west side, has about 1,300 students.