A nanny accused of decapitating a young girl in her care before brandishing the head in a Moscow street says "Allah ordered" the killing as a judge extended her detention during a first court appearance.