ROSEBURG, Ore. (AP) — A student at the Oregon community college where a mass shooting occurred says the gunman shot her teacher and asked others in her classroom about their religion before spraying more bullets.

Eighteen-year-old Kortney Moore of Rogue River tells the Roseburg News-Review newspaper that she was in a writing class at Umpqua Community College in Roseburg on Thursday when a shot came through a window.

The gunman entered her classroom and told people to get on the ground.

Moore says the man started asking people to stand up and state their religion and then opened fire.

The shooting left 13 people dead and at least 20 injured.

Douglas County Sheriff John Hanlin says authorities responded and exchanged gunfire with the man. He says the shooter died at the scene, but he didn't say whether the man killed himself or was shot by police.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.