A murder-suicide Wednesday morning at UCLA left a professor and his shooter dead, prompted a two-hour campuswide lockdown and shook the nerves of thousands of students and staff during the last week of instruction at the world-renowned university.

Law enforcement offers responded to a gunfire call on the Westwood campus about 10 a.m. Los Angeles police, Los Angeles Fire Department personnel and even agents from a nearby FBI office filled the university grounds, searching for a suspect near the Engineering IV building on the southern side of the campus.

The university was placed on lockdown while students were told to shelter in classrooms or dorm rooms, pull down blinds and lock the doors.

The slain professor was identified in published reports and by students as 39-year-old William S. Klug, who taught in the Department of Mechanics and Aerospace Engineering. His shooter, a male who may have been a graduate candidate, was not immediately identified.

Police swarmed the university in full gear as they searched buildings for additional suspects, but found none.

A bomb squad unit was called to the campus, but no explosive devices were found or reported, police said. About two hours later, LAPD Chief Charlie Beck said the shooting was a murder-suicide that occurred inside a small office in the engineering building.

“It appears it was entirely contained,” Beck said. “We believe there are no suspects outstanding and no continued threat to UCLA campus.”

Beck said a suicide note may have been left behind.

Three Los Angeles Unified School District campuses near UCLA also were placed on lockdown, including Fairburn and Warner elementary schools and Emerson Community Charter Middle School, according to an LAUSD spokeswoman, who said parents had been notified.

Lockdowns were eventually lifted at UCLA and the LAUSD schools.

But the shooting created ripple effects both on campus and throughout Los Angeles. Classes were canceled for the rest of the day at the university, according to UCLA officials.

Los Angeles Mayor Eric Garcetti said in a statement that he was “heartbroken by the sight of SWAT teams” at UCLA, and “angered by the fear that one person with a firearm can inflict on a community.”

“This horrific event, at an institution dedicated to learning and mutual understanding, reminds us once again of the fragility of a peaceful society,” he said.

Classes will resume today, although engineering classes have been canceled for the rest of the week, Waugh said later in the day. He said the campus remained in a state of sorrow.

“They’re looking to have a vigil in the next couple of days,” Waugh said. “Obviously, there are very distressed students faculty and staff, and they need to heal those wounds.”

Waugh said the lockdown went “extremely smoothly” thanks to the Bruin alert system, and he noted the university will continue to examine its procedures in relation to shootings and other scenarios.

“We’ll learn from this event,” he said. “We’ll learn how we need to work as cooperatively as possible with the different law enforcement agencies to make sure they can handle these kinds of situations as effectively and safely for students and staff.”

The university shooting came on the same day that a gun violence awareness event was held at Los Angeles City Hall.

Meanwhile, the organization Everytown for Gun Safety issued a statement saying that the UCLA incident marked the 26th school shooting in the nation this year.

“Today a California university has been affected by gun violence and yet another round of families will get a call like so many parents receive when gun violence strikes where our children are learning,” said Richard Martinez, whose son Christopher Michaels-Martinez was killed in 2014 near University of California, Santa Barbara.

More than 43,000 people attend UCLA. Graduation ceremonies are set to start next week.

During the lockdown, some UCLA students sitting in darkened classrooms took to Twitter to share their concerns.

“Sitting under desk with door locked and lights off during my last ever class at #UCLA because of campus shooting,” tweeted Tom Jackson, an MBA candidate at the UCLA Anderson School of Management.

Alan Mendoza, a 20-year-old psychobiology major from Long Beach, said he had just finished class and met his girlfriend at Royce Hall when he received a “Bruin Alert” text message that there was a shooting on campus.

“Over the speaker, they were saying ‘gunman on campus, seek shelter,’” Mendoza said. “It was scary, but I kind of knew the best option was to be calm and not panic.”

Larry Altman has covered crime and court proceedings in Southern California since 1987. A graduate of Cal State Northridge, where he served as editor of the college newspaper, Altman has worked for the Daily Breeze since 1990. The Society of Professional Journalists named him a "Distinguished Journalist" in Los Angeles in 2006. Altman's work was featured twice on CBS' “48 Hours” and he appeared eight times with “Nancy Grace," who called him "dear." He has covered hundreds of homicides and many trials. Altman has crawled through a mausoleum to open a coffin, confronted husbands who killed their wives, wives who killed their husbands, and his coverage helped put a child molester and a murderer in prison. In his spare time, Altman is an avid Los Angeles Lakers and Dodgers fan, is the commissioner of a Fantasy Baseball league with several other current and former newspapermen, runs a real estate empire and likes to watch old movies on TCM.