By Jason Hanna and Deanna Hackney
A gunman shot and killed a person at Purdue University's electrical engineering building Tuesday before surrendering to a police officer outside, the Indiana school's police chief told reporters.
Both the suspect and the victim were males, Purdue Police Chief John Cox said, but their names weren't immediately released.
The shooting at the school of about 30,000 undergraduates in West Lafayette occurred at about noon. Officials asked students throughout the campus to stay indoors until police gave the all-clear a little more than an hour later.
Cox said it appeared that the suspect had just had one target in mind. He left the building right after the shooting, and a city police officer arrested him, Cox said.
"This individual seemed to have had intentions for the decedent," he said.
No information about a motive was released. Cox said the suspect made no statement to investigators and was offering "little to no cooperation."
David Hook, a Purdue sophomore, told CNN he and other students were in the building's lecture hall for a noon economics class when the shooting happened in another room. Hook said he heard shouting coming from outside the hall, behind and to the left of the instructor.
"Originally, I just thought it was just people being loud," Hook, 20, said. "When I heard (shouting) the second time, I thought something was probably going on."
Hook didn't hear gunfire. He said someone entered the hall a minute later and -- without mentioning a shooting -- told everyone to leave the building.
Walking back to his apartment, Hook said, he saw police outside the building but didn't see any arrest.
The school sent text messages to students about the shooting, asking them to take shelter where they were. That request was lifted by 1:30 p.m., though the electrical engineering building still was closed so police could investigate, school spokeswoman Liz Evans said.
"The rest of campus is open" and classes were under way, Evans said.
Purdue student Brad Glusvewski told CNN that the university warned students of the reported shooting by text message at about 12:20 p.m. ET. Glusvewski, 24, said he and about 15 other people stayed inside another campus building during the alert.
CNN first learned about the shooting report on Twitter.
CNN's Shawn Nottingham, Wolf Blitzer and Thom Patterson contributed to this report.
™ & © 2014 Cable News Network, Inc., a Time Warner Company. All rights reserved.