A San Rafael man was arrested on suspicion he used his cellphone to make a video of a 12-year-old girl in the shower, police said.

Jose Andres Herrera, 26, was booked into Marin County Jail early Friday on suspicion of annoying or molesting a child and secretly videotaping a naked or partially undressed person. His bail was set at $50,000.

The girl's mother called police after the girl noticed a flashing red light in the bathroom and found the cell phone, said San Rafael police spokeswoman Margo Rohrbacher.

Police linked the phone to Herrera, who knows the girl and her mother and was in the residence at the time.

In addition to the cell phone case, Herrera is being detained on a federal immigration hold pending further investigation into his citizenship status.