The woman alleged that the accused entered her room in the wee hours, tore her clothes and attempted to rape her.
She had decided to stay at the shrine overnight after visiting her undertrial son in Pathankot jail, they said.
The woman was saved by devotees occupying neighbouring rooms who came to her rescue upon hearing her cries, they added.