RIVERSIDE, Calif. — A Southern California boy who shot and killed his neo-Nazi father in 2011 lost a bid to get his case dismissed when a state appellate court Monday rejected his arguments that a judge wrongly considered statements he made to authorities in violation of his Miranda rights and allowed him to be evaluated by a doctor without his attorney being present.

A division of the 4th District Court of Appeal also said there was substantial evidence to support the court’s finding that the boy understood what he had done was wrong, and the court had considered all of the relevant evidence before sending him to juvenile lockup as opposed to a less restrictive residential treatment center.

Authorities say the child shot and killed his father, 32-year-old Jeffrey Hall, at point-blank range as he slept on a sofa in their home on May 1, 2011, after a night of drinking.

The boy told officers that his father had repeatedly abused him, according to the appeals court.

He had a history of violence that predated his father’s involvement with white supremacist causes, prosecutors said. At 5, he stabbed a teacher with a pencil on his first day in kindergarten. He also tried to strangle a teacher with a phone cord, according to prosecutors.