Chandras, the accused, was the hostel owner's son, police said.
The incident occurred on Thursday when the complainant, who lives in the hostel, spotted someone holding a mobile phone outside the bathroom's ventilator, and raised alarm.
After she lodged a complaint with KPHB police station, police started a probe and zeroed in on Chandras. He was booked under relevant IPC sections.
Disclaimer: No Business Standard Journalist was involved in creation of this content