A contracted nurse practitioner has been charged after allegedly being caught on camera while sexually assaulting a resident of the Massachusetts nursing home where he was working.

Frank Palin, 67, had been working at Cornerstone at Canton as an employee of Old Colony Hospice, WCVB reported. On May 19, he gained access to the victim’s room, and allegedly assaulted her and asked her a lewd question about her sexual history.

The victim’s family used a hidden camera they had installed about two months prior to find footage of the incident. After watching the video, police told the television station, it appeared the victim “was in distress throughout the duration of the encounter.”

Bob Larkin, president of Senior Living Residences, Cornerstone’s operator, told WCVB the violation of a “vulnerable elder is appalling beyond words.”

“We support the victim’s family and the police department in seeking criminal prosecution to the fullest extent of the law. Nothing is more important to us than the safety and well being of our residents,” he said.

The community offers a secure memory setting affiliated with the Boston University Alzheimer’s Disease Center, as well as some assisted living units.

On Friday night, the company released a statement disputing a claim that Palin entered the resident’s room without an appointment.

“He was in uniform and properly identified himself to the staff when he came into the building at the scheduled time, therefore he was let in to see the resident,” Senior Living Center Director of Communications Pamela Maloney wrote. “All access procedures for visiting healthcare professionals were followed.”

Palin was arrested Sunday night and pleaded not guilty to a count of indecent assault on a person over 65 years old at an arraignment Monday. He was released on $5,000 bail, and is next due in court July 30.

Old Colony Hospice told the news station he had been suspended.