It happened just before noon on Wednesday in the 1000 block of Poppy Avenue.
The Compton Sheriff's Station told Eyewitness News the baby was sent to St. Francis Medical Center in Lynwood. As of 10:40 p.m. on Wednesday, the baby remains hospitalized and is reportedly stable.
ABC7 was told a sheriff's deputy rushed the baby to the hospital in his own vehicle.
One person has since been taken into custody.
The age of the baby was also not immediately disclosed by authorities.
Eyewitness News spoke with one resident in the area who said she fears for the safety of her children.
According to the residents ABC7 spoke with, no one in the area heard gunshots. Anyone with information is urged to contact authorities.
This is a developing story. This article will continue to be updated as more information becomes available.