The lawyer for Hollywood filmmaker Peter Rodger said that the "family believes the child was the perpetrator".
Alan Shifman said the son had Asperger's syndrome, had trouble making friends and had been receiving professional help.
Mr Shifman added that the family had contacted police about "recent posts on YouTube" by Elliot "regarding suicide and the killing of people". The family is "devastated" and co-operating with police, he said.
More top news
The seven-year-old was standing in front of the elephant's enclosure at Rabat Zoo when the rock hit her in the head.
Not quite a washout today but rain will be lurching from west to east across many areas - steady in some locations, patchy in others.
In an exclusive interview, Ranvir speaks to the parents of Stephanie Inglis about how they’re coping with every parent’s worst nightmare.