LOS ANGELES -- Mainak Sarkar was the gunman who opened fire at the University of California Los Angeles on Wednesday, the Los Angeles Police Department said.
A professor, William S. Klug, was identified by UCLA Student Body President Michael Skiles as the slain individual.
Sarkar was a former Ph.D. student who had posted a tirade about the victim on social media and accused him of stealing his computer code before giving it to someone else, the Los Angeles Times reported.
Police found a "kill list" at the Minnesota home of the gunman who opened fire at UCLA on Wednesday, Los Angeles Police Chief Charlie Beck told CNN affiliate KTLA. The name of the UCLA professor killed by the gunman was on the list, as was the name of another woman who police later found dead, Beck said.
Klug was described as an easy-going little league coach, according to one friend, and an "an empathetic, brilliant teacher" as California Lt. Gov. Gavin Newsom put it.
The murder-suicide on UCLA's campus shocked the student body and sent the school into lockdown on Wednesday.
"Our hearts are heavy this evening as our campus family mourns the sudden and tragic deaths of two people on our campus earlier today," said Chancellor Gene Block in an email. "Our UCLA family has indeed been shaken, but we will rely upon the strong bonds of our community and our faith in one another as we begin the process of healing."
A father of two, Klug was killed on campus in an apparent murder-suicide in one of the university's engineering buildings.
"It's hard to even fathom," Klug's friend, Lance Giroux, told CNN affiliate KCBS, fighting back tears. "To have your son grow up without a dad, it's rough."
Friends told KCBS that he was a proud coach of his young son's baseball team.
"[He was] always very positive. Kids loved working with him because he was such an easy coach to work with," Giroux said.
The Los Angeles Police Department said it got the call about the shooting around 10 a.m. local time.
Officials put the campus on lockdown as authorities investigated. Throngs of police with long guns patrolled the streets of the campus of more than 40,000 students.
SWAT officers and dozens of squad cars filled the area as police tried to clear campus buildings floor by floor -- a task that CNN law enforcement analyst Tom Fuentes called "monumental."
UCLA's engineering building is in the middle of a very densely populated part of Los Angeles.
The situation was contained shortly after noon, LAPD Chief Charlie Beck said. He said the shooting took place in a small office in the engineering building.
Police found a weapon, and no suspects remain at large, Beck added.
Police are still investigating the shooting, according to university officials.
It was a jarring, tense time for the university's students. To protect themselves, some blocked doors with printers, according to a picture on Twitter.
Freshman Teddi Mattox said she was in a cafeteria getting breakfast along with about 100 other students when the shooting occurred.
"We got the alert and a woman said, 'This is not a joke, everyone get to the back of the dining hall because we have to stay away from the windows,'" she said.
"We're crowded back here, we've been here for at least an hour and a half. People are crying, they're nervous, they're shaking ... I have not stopped shaking for the last hour and a half."
UCLA officials said they will review all campus safety procedures.
"We're pleased in the way notification went out, troubled by some reports of unlocked doors, but we want to review everything," said Scott Waugh, UCLA's executive vice chancellor and provost.
UCLA has also extended counseling services over the next few days to serve all the students who may be in need, Waugh said.
The university's final exams are scheduled for next week, with graduation set for Friday.
The engineering school's senior class dinner was scheduled for Thursday night.
Classes are expected to resume for most of the school tomorrow (the engineering school will be excluded).
Professor studied 'interface' of mechanics, biology
Klug is listed as a professor of mechanical and aerospace engineering on UCLA's website. He received his undergraduate degree at Westmont College, then obtained a Masters at UCLA and a Ph.D. from Caltech.
He also led the Klug Research Group, which studied "problems at the interface of mechanics and biology."
"We aim to understand how the physical properties of biological structures and materials are involved in biological function from molecular and cellular scales upward," the group's website says.
CNN's Artemis Moshtaghian, Deborah Bloom, Tina Burnside, Amanda Wills, Andy Rose and Stella Chan contributed to this report.