Later, the three-year-old boy went into the car, was then shot in the face and later died, prosecutors say.
The older boy appeared in a juvenile court for a preliminary hearing on Wednesday afternoon.
He faces another two charges of death by weapon aimed with intent, but without malice, and felony firearm.