Classes were canceled Monday at Coastal Carolina University and students were urged to stay indoors because of a fatal shooting near campus.

It's not clear whether the victim was a student, university spokesman Doug Bell said.

The assailant has not been caught. "Because it is so close to campus and a good many students do live over there, we are taking precautions," Bell said.

Classes are canceled until 7 a.m. Tuesday. Students were urged to stay inside through a text message alert and a notice posted on the school Web site.

One man died in the shooting, Horry County Police Sgt. Bob Carr told The (Myrtle Beach) Sun News.

Police did not immediately return calls from The Associated Press.

Coastal Carolina University has about 7,800 students; its main campus is about 15 miles northwest of Myrtle Beach.