Two students were shot outside a Maryland public high school Wednesday night while a basketball game was being played inside causing panic as parents rushed to the scene to make sure their children were OK.

The Frederick High School students were flown to a Baltimore hospital. The injuries they suffered did not appear to be life-threatening, Frederick Police Capt. Richard Hetherington said. He did not know the ages or gender of the students.

Hetherington said the shooter or shooters were still at large early Thursday.

Frederick Police Department Lt. Bruce DeGrange told the shooting took place at 8 p.m. and the authorities immediately locked down the building.

Officers took about 200 people who were at the game into the cafeteria. Police secured the building and questioned witnesses, Hetherington said. Students were released to their parents in the parking of a nearby bowling alley.

Frederick High School junior Sofia McCluskey said she was watching the game and heard a muffled shot. "Someone yelled, `Yo, they're shooting,"' she said. "And we just ran as fast as we could."

She and her friend, Stephanie Sanchez, said they ran to the locker room and were taken to the cafeteria, where they waited and were briefly interviewed by police.

Sanchez said it was a frightening experience. "I was, like, shaking the whole time. I still am," she said.

Dejuan Jones, a sophomore, said, "You would expect it to happen at a varsity game, but it was like a JV game," he said. "Nobody hardly comes to those."

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

The high school has about 1,300 students. The district said that the school would be closed Thursday for students.'s Karl de Vries and The Associated Press contributed to this report.