Police and school officials say students were shot outside the public high school in Maryland while a basketball game was being played inside. (Bill Green/AP)

(Updated: Two teens shot outside a Md. high school during a basketball game)

Two teenagers were shot Wednesday night outside Frederick High School as a junior varsity basketball game was played inside, Frederick County police and school officials said.

About 200 people who attended the game were being questioned in the cafeteria as of 10:15 p.m., said Michael Doerrer, a school system spokesman. But within an hour, police had completed most interviews and they released students and parents, said Lt. Bruce DeGrange, a police spokesman.

Police did not comment on a possible assailant or assailants and did not say what might have prompted the gunfire.

Officers were dispatched to the school about 8:11 p.m., and they found two people who had been shot outside the school, DeGrange said.

The two male students, one 14 and the other 15, were flown to a hospital in Baltimore. One was shot in a leg, and the other was hit in the back, said Denise Pouget, the Frederick County fire chief.

DeGrange said their injuries were not believed to be life- ­threatening. Police swept the area in search of a possible shooter and established a perimeter around the school grounds. “We have the area locked down,” DeGrange said earlier.

The game pitted Frederick High against Governor Thomas Johnson High, also in the county school system. It was not clear where the two victims go to school.

In the aftermath of the shooting, Frederick High School officials called off school Thursday for students, but said staff should report to work. A statement on the school’s Web site said a “crisis team” offering counseling support would be available to students and staff.