The shooting reportedly took place on Sunday shortly before midnight, police quoted by the KTLA channel said. According to the police, several gunshots were fired outside the boy's house and a bullet struck the child.
Multiple family members were in the house when the boy was injured.
The boy is said to have undergone surgery at a hospital where he was delivered after the incident.
The boy's home is located close to an elementary school. The area around the house is currently cordoned off and an investigation is underway.