Actually, I dont think its illegal as its not child abuse b/c it happened at his request. But I dont know... I'll have to Google it.
Only law I found that included mastubation was in Utah...
"Adultery, oral and anal sex, masturbation are considered sodomy and can lead to imprisonment."
But, as i said, it could be child abuse.