A Northern California police officer has been placed on leave over an allegation that he masturbated inside a family's home where he was dispatched for a disturbance as his department grapples with a series of recent controversies involving its personnel, authorities said.