A suspect detained by police and taken to a Thousand Oaks hospital for treatment was shot inside the medical center by one of the officers, authorities say.

The incident took place inside Los Robles Regional Medical Center in Thousand Oaks shortly after noon on Thursday. According to Simi Valley police, officers were guarding a 46-year-old man who had been detained on suspicion of attempted murder. The individual had “injuries that required hospitalization.”

“While monitoring the subject, the officer noticed he needed medical attention and summoned staff to assess him.”

During that assessment, “an incident occurred” that resulted in an officer shooting the suspect, police said in a news release.

A source familiar with the incident who was not authorized to speak publicly told The Times that the suspect grabbed a medical staffer.

The suspect was wounded by the gunfire. He was then treated by medical staff and was considered stable, police said. He remains in custody.

The shooting, which took place on the fourth floor of the hospital, led to a massive law enforcement response at the facility at 215 W. Janss Road.

The violent incident the suspect was earlier involved in took place in Simi Valley, police said. The shooting at the hospital will be investigated by detectives with the Ventura County Sheriff’s Office, which polices Thousand Oaks.

Los Robles officials said that staff, patients and visitors were safe and that medical care was not interrupted at the hospital.

Police ask any witnesses who were not contacted by authorities at the scene to contact detectives at (805) 654-9511.