LAS VEGAS — Authorities have identified the man and the police officer involved in Monday’s Las Vegas hospital shooting.

Police said 35-year-old Officer Thomas Rybacki shot and killed the suicidal man at the University Medical Center emergency room.

The Clark County coroner’s office said 31-year-old Cody Leighland O’Bryan died of a single gunshot wound to the head. His death was ruled a homicide.

Police said O’Bryan was arrested on a felony warrant and was taken to the hospital because he was too intoxicated to be kept in jail. Police said he had called 911, threatening suicide.

Police said the officer opened fire after O’Bryan took a stun gun from a jail guard’s bag that was left in a room with him and pointed it at a security guard and nurse.