A 25-year-old bank employee opened fire at his workplace in downtown Louisville, Kentucky, on Monday morning and live streamed the attack that left four dead and nine others injured, authorities said.

The gunman was identified as Connor Sturgeon, an employee at Old National Bank, according to interim Louisville Metro Police Chief Jacquelyn Gwinn-Villaroel. He was killed by police after a shootout with authorities.

The four victims were identified as Joshua Barrick, 40; Juliana Farmer, 45; Tommy Elliott, 63; and James Tutt, 64, the chief said. Gov. Andy Beshear said Elliott, a senior vice president at the bank, was one of his closest friends.

Gunman livestreamed mass shooting at Louisville bank that left 5 dead and 8 injured

Of the nine people injured, three are hospitalized in critical condition, including a 26-year-old police officer who graduated from the police academy just 10 days ago and was shot in the head. Three of the injured are in non-critical condition and three have been released, the chief said. Five of the nine people injured had gunshot wounds, a hospital spokesperson said.

The mass shooting began at the Old National Bank on East Main Street just after 8:30 a.m. police said, about 30 minutes before the bank opens to the public. It happened during a morning employee meeting, with some appearing in person and others virtually, Rebecca Buchheit-Sims, a manager at the bank, told CNN. She watched from her computer as her coworkers were gunned down.

Watch El Galvancillo leaked video scandal

Sturgeon wrote a note to his parents and a friend indicating that he was going to open fire in the bank, the source said. It is not clear whether that note was on paper or emailed, or whether it was seen before the incident or after, according to the source.

The shooting was livestreamed on Instagram and has been taken down but not immediately after the shooting. Police are in possession of the video, according to the source.