Klug, a married father-of-two, worked as an associate professor and coached his son's little-league baseball team

LAPD said Sarkar appeared to resent Klug, his old PhD supervisor, because of a dispute over intellectual property


Police said Sarkar, pictured, may have targeted Klug, a married father-of-two, in a dispute over a piece of code he wrote while he was a student.

This is the disgruntled former PhD student who murdered his professor at UCLA before killing himself.

Mainak Sarkar, originally from India but resident in the US for more than a decade, shot engineering professor William Klug dead in his office on Thursday before committing suicide.

LAPD chief Charlie Beck said that Sarkar was involved in a long-running dispute with Klugg because he believed they had stolen codes he wrote as part of his PhD before passing them on to another student.

However, Beck added that there is no evidence to suggest this was true, saying the slight was a figment of Sarkar's imagination.

Sarkar was armed with two 9mm semi-automatic pistols, Beck added, and had equipped himself with several fully loaded magazines and additional ammunition.

An earlier photo erroneously circulated online by students purported to show a man walking through UCLA armed with an assault rifle.

Beck said: 'This is a tragedy, but if there is a silver lining here, it's that Sarkar could have done a lot more damage with the ordinance that he brought.'

In a blog post uploaded on March 10 under Sarkar's name, he writes that Klug 'stole all my code and gave it another student', branding him a 'sick man'.

The post, which was uploaded to a blog called Long Dark Tunnel but has since been deleted, says: 'William Klug, UCLA professor is not the kind of person when you think of a professor. He is a very sick person. I urge every new student coming to UCLA to stay away from this guy.

'My name is Mainak Sarkar. I was this guy’s PhD student. We had personal differences. He cleverly stole all my code and gave it another student. He made me really sick.

'Your enemy is your enemy. But your friend can do a lot more harm. Be careful about whom you trust. Stay away from this sick guy.'

Beck said that while Klug and his colleagues were aware of Sarkar's issues with the property rights, and thought of his behavior as odd, they did not view him as a threat.

A source told the LA Times that Sarkar's claims were 'psychotic', adding that his characterization of Klug as a thief is 'absolutely untrue'.

A UCLA spokesman told Dailymail.com that Sarkar earned his PhD in the summer of 2013, the same year he submitted his dissertation thanking Klug for his help in putting it together.

Sarkar's social media profiles show he obtained his undergraduate degree in aerospace engineering from the Indian Institute of Technology, in Kharagpur, in 2000.

He then worked for a time as a software developer in Bangalore before moving to America, where he worked as a research assistant at the University of Texas in Arlington.

In 2003 he went to Stanford to study for a Masters in aeronautics and astronautics, graduating two years later, and then going back to work as a software developer in Texas.

It was after that job that he began studying for his PhD in mechanical engineering at UCLA, working as a teaching assistant for a few years, and then taking a job at Endurica, a rubber testing company where he specialized in 'elastomer fatigue'.

However, an email from Endurica to the Dailymail.com revealed that Sarkar stopped working for that company back in 2014. It is not clear what, if any, employment he had in the last two years.

A UCLA spokesman said the institution is trying to establish whether Sarkar worked for them after he graduated, and whether he had any other connections to the college.

Klug, an associate professor of mechanical and aerospace engineering at UCLA, was married with two young children and spent his spare time coaching his son's little-league baseball team, friends said.

Co-workers praised Klug as both brilliant and kind, a rare blend in the competitive world of academic research, according to the LA Times.

Alan Garfinkel, a fellow professor and one-time collaborator with Klug, said: 'I am absolutely devastated. You cannot ask for a nicer, gentler, sweeter and more supportive guy than William Klug.'

Melissa Gibbons, one of Klug’s former Ph.D students, said he was an exceptional mentor and always tried to help out struggling students, once asking her to mentor an undergraduate who he felt needed extra instruction.

Chancellor Gene Block said: 'Our hearts are heavy this evening as our campus family mourns the sudden and tragic deaths of two people on our campus earlier today.'

Reports suggest the student, who has not been named, was angry over his grades.

Around 200 armed officers, SWAT teams, FBI agents and firefighters swarmed the campus at around 10am to reports of at least three shots fired.

Students were then put on lockdown and told to shelter in place.

Victim: Klug (left at a UCLA Bruins game and right) was a Mechanical Engineering professor. His areas of interest included computational structural and solid mechanics, computational biomechanics, and micro/nanomechanics of biological systems

Armed officers stormed a corridor of one of the buildings and checked classrooms after the murder-suicide threw the campus into chaos

The bodies of the men were discovered inside a small office on the fourth floor of an engineering building, along with a piece of evidence that is believed to be a suicide note (pictured, armed officers search the campus)

In a blog post uploaded on March 10 under Sarkar's name, he writes that Klug 'stole all my code and gave it another student', branding him a 'sick man'

Hundreds of armed officers swarmed UCLA shortly after 10am when they received multiple reports of at least three shots fired

Chancellor Gene Block said: 'Our hearts are heavy this evening as our campus family mourns the sudden and tragic deaths of two people on our campus earlier today.'

Professor Alan Garfinkel told the LA Times, 'You cannot ask for a nicer, gentler, sweeter and more supportive guy than William Klug.'

According to a website set up in his dedication, Klug was a Mechanical Engineering professor at UCLA. His areas of interest included computational structural and solid mechanics, computational biomechanics, and micro/nanomechanics of biological systems.

He is said to have graduated from California Institute of Technology - Caltech in 2003.

Beck declared the campus safe around two hours later, though police remained on site for a short while clearing students from classrooms in Boelter Hall one by one to ensure a second suspect wasn't hiding among them.

Beck said the bodies of the men were found alongside a weapon and what could be a suicide note, but would not go into more detail.

A person from the Los Angeles County Department of Medical Examiner-Coroner's office removes a body at the scene of a fatal shooting

Students were ordered into lockdown and told to barricade themselves in place while armed officers searched for a possible shooter, though it has now been revealed the killing was a murder-suicide

Witnesses reported hearing three bangs before seeing people running away from the scene shortly before law enforcement flooded campus and began hunting for suspects

Students and staff who were busy preparing for final exams had to be evacuated from study rooms and were pictured being marshaled away from the scene with their hands over their heads

Officers said they were called to the scene at approximately 10am and spent around two hours securing the campus before students were given the all-clear to come out of hiding

UCLA police were the first to respond to the shooting, followed by the LAPD along with SWAT teams and FBI agents

WILL AND GRACE STAR DEBRA MESSING DRAWS IRE ON TWITTER WITH 'GUN SAFETY SELFIE' IN WAKE OF UCLA SHOOTING Will and Grace star Debra Messing has come under fire after posting a selfie that was meant to bring awareness to gun violence in America amid news of the UCLA campus shooting. As news broke about the tragic murder-suicide at UCLA's engineering school on Wednesday, Messing shared a photo of her wearing shirt that read 'Under the Gun,' the title of Katie Couric's new gun violence documentary. Will and Grace star Debra Messing drew ire on Twitter on Wednesday after posting a selfie (pictured) that was meant to bring awareness to gun violence in America amid news of the UCLA campus shooting The 47-year-old's now-deleted tweet also included the caption: 'HORRENDOUS Watching news about shooting at UCLA with casualties while taking selfie 2bring awareness to Gun Violence.' Twitter users quickly hit out at the actress, criticizing her for posting the selfie with some calling her a 'narcissistic, self-absorbed celebrity,' according to the New York Daily News. 'Ima talk about the senselessness of gun tragedies, but 1st a pensive airbrushed selfie to convey the seriousnes of it~shorter @DebraMessing,' user LMR wrote. Advertisement

UCLA staff and students were forced to use their belts to lock doors during yesterday's terrifying murder suicide which left two men dead.

A campus-wide emergency urged everyone to find shelter and lock the door until police could secure the situation.

But many students discovered they were unable to properly lock the doors and had to improvise by moving furniture to prevent the gunman from entering.

Students at UCLA had to improvise in order to keep the door closed during yesterday's fatal shooting

Students said there were chaotic scenes as they tried to barricade themselves behind doors.

Some claimed they had to use photocopiers and foosball tables to wedge shut the door.

Olivia Cabadas, a 22-year-old nursing student, was getting ready to take a quiz in the mathematics building when her classmates began getting cellphone alerts. Through a window, they could see students rushing down the hallway.

Students wedged tables and chairs against the door in an effort to prevent the gunman from entering

It is thought this man, circled was the gunman who shot dead Professor Klug in his Engineering web

An officer yelled that everyone should get out.

'It was just a little surreal - this is actually happening,' Cabadas said. 'It was chaos.'

Those locked down inside classrooms described a nervous calm. Some said they had to rig the doors closed with whatever was at hand because they would not lock.

Umar Rehman, 21, was in a math sciences classroom adjacent to Engineering IV, the building where the shooting took place. The buildings are connected by walkway bridges near the center of the 419-acre campus.

'We kept our eye on the door. We knew that somebody eventually could come,' he said, acknowledging the terror he felt.

The door would not lock and those in the room devised a plan to hold it closed using a belt and crowbar, and demand ID from anyone who tried to get in.

Scott Waugh, an executive vice chancellor and provost, said the university would look into concerns about doors that would not lock. Overall, he said, the response was smooth.

UCLA students are currently preparing for final exams, with many having to be cancelled because of the lockdown earlier today.

A statement released earlier in the day from the LAPD said: 'At approximately 10am this morning Los Angeles police officers responded to multiple calls of shots fired on the UCLA campus.

'Both LAPD and UCLA police began a search for suspects and victims. The LAPD has confirmed that two males were located suffering gunshot wounds.

'The LAPD is continuing a methodical search of the campus and surrounding areas; however, no additional suspects have been seen.'

Television images from the site show dozens of armed police moving around the campus alongside students walking with their hands on their heads.

Meanwhile students on campus uploaded images from inside classrooms, including one student tying a door shut with a belt.

Numerous university and Los Angeles city police officers have responded, moving about the campus with weapons drawn.

A university spokesman told People: 'We have responded in an abundance of caution. The city of Los Angeles has been placed on a tactical alert city-wide.'

Jason La, 33, a computer science graduate student, told the LA Times that he was sitting in Boelter Hall taking a test about 9:40 a.m. when an officer walked in and told the class to lock the door and barricade it.

About a minute later, they were told to leave. As students began to move out of the building, an officer yelled at people to get away from the building and people began to run away, La said.

On Wednesday afternoon, Los Angeles Mayor Eric Garcetti issued a statement on the UCLA shooting.

He said: 'My thoughts and prayers go out to all those affected by what appears to have been a murder-suicide on the campus of UCLA.

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

'Thankfully, the campus is now safe — but I am heartbroken by the sight of SWAT teams running down avenues normally filled with students, and angered by the fear that one person with a firearm can inflict on a community.

'I want to commend the entire UCLA community for its extraordinary grace and calm on a traumatic morning.'

Rafi Sands, vice president of UCLA's student government, said he and about 30 other students used their belts to secure their classroom door after news of the shooter spread.

Students were forced to improvise as they barricaded themselves in the class room during yesterday's tragic attack

The school on the west side of Los Angeles is a flagship of the University of California system, with about 43,000 students. It's currently the week before final exams. Vehicles were also being directed away from the campus earlier today.

At a news conference, UCLA Executive Vice Chancellor and Provost Scott Waugh characterized the events as 'tragic' and provided updates about how the shooting would affect campus operations.

'I want to say that our hearts go out to the victims,' Waugh said. He said also that while classes and evening events have been canceled today, commencement and final examinations will continue as scheduled.

'We want to resume normal operations as quickly as possible, so we will resume scheduled classes tomorrow morning,' he said. 'Faculty, staff and students should show up tomorrow and go through their regular routines and complete the quarter as planned.'

Waugh praised local law enforcement for its cooperation and rapid response.

'I also want to thank all the law enforcement agencies of Southern California who reacted so quickly to help secure the scene and help us prevent further damage to the campus,' Waugh said. 'The lockdown went extremely smoothly. That was the result of the efficiency of the BruinAlert system, which enabled people to know what to do in a timely fashion.'

In the wake of the tragedy, UCLA officials will continue to examine all campus procedures related to an active shooting, he said.

'We've gone through many scenarios in the past and we'll continue to do that,' Waugh said. 'We'll learn from this event and we'll learn how we need to work as cooperatively as possible with the different law enforcement agencies to make sure that we can handle these kinds of situations effectively and safely for the students, faculty and staff.'

Gabriela Romero, a third year student is emotional as she calls her mother telling her not to worry following the deadly campus shooting

Students on lockdown posted images of themselves inside classrooms, including one student who sealed a doorway by tying a belt around the opening mechanism

Other students uploaded images of chairs and desks stacked up against their classroom door as they barricaded themselves in

The campus was declared safe around two hours after the shooting was first reported, though armed officers said they would remain for a short time to conduct final searches

Heavily armed officers have been going room-to-room on the UCLA campus clearing students out after they were asked to shelter in place following reports of a shooting earlier today

Students were filmed coming out of the buildings one by one before kneeling in front of an armed officer who searched them before they were released

Officers checked each person to come out of the building for any weapons to ensure a second shooter was not hiding among them

Armed police went room-to-room flushing people out of classrooms and into the path of cops outside who carried out the searches

Hundreds of students who were earlier preparing for finals were forced to shelter and were then evacuated by police

Students are searched by armed officers after spending two hours locked down inside their classrooms

FBI officers were called on to campus while President Barack Obama, who is on board Air Force One, has also been notified

Students have been told that finals and classes scheduled for today have been cancelled though the campus has been declared safe

Police were evacuating students from classrooms one-by-one, searching each of them individually before allowing them to be released

It had been reported earlier that officers were searching for a while male dressed in black, but police say they are not looking for additional suspects (pictured, a student is searched by police)

Reports of a shooting prompted a massive response from law enforcement after mass-casualty attacks on other institutions, such as Umpqua Community College where ten people were shot last fall

LAPD chief Charlie Beck has said that the campus is now safe and students have returned to public areas (pictured, cops search the campus earlier today)

The LAPD said it received multiple calls of a campus shooting, including from UCLA police, before arriving in force earlier today

homicide detectives have now been called to the scene and will take over the investigation, chief Beck said

Students and university staff were released from lockdown after around two hours when police ruled the shooting a murder-suicide

Pupils were filmed streaming out of locked buildings and back to residences after classes were cancelled for the remainder of the day

Police remained on campus for a short time after the lockdown was lifted to conduct a search of the building the shooting took place in

An LAPD police spokesman confirmed that SWAT teams, armed officers and bomb squads were on campus, though said there was no evidence of explosives. Officers said that the threat was initially reported by UCLA police.

Classes and final exams scheduled for Wednesday have all been cancelled and will be rescheduled, university officials said.

There were reports however that some professors were ignoring warnings by the UCLA administration to cancel exams, and told students to find computers to complete them.

UCLA is in the Westwood section of Los Angeles and one of the more well-regarded schools in the University of California system, known for its successful sports program.

'I couldn't believe it happened at UCLA,' said Sam Zheng, 38, a researcher who was working in the engineering building at the time of the shooting. 'I just want to go home. I don't want to stay here.'

Engineering student Aaron Feigelman said he received a text message alerting him to an emergency and entered an adjacent building, where he and five others took refuge for 90 minutes.

'We just bolted out of there and ran up to the seventh floor,' Feigelman said. 'We tied the bathroom door hinges with belts to keep the door closed because there were no locks. And we just waited. It was really scary.'

Terrified students told reports that they never expected something like this to happen on their campus after being released from lockdown