A court has extended until Monday the detention of a Jerusalem resident suspected of indecent acts against a six-year-old girl.