A 2-year-old boy in Philadelphia is in critical condition after his 4-year-old cousin accidentally shot him on Thanksgiving, police said.

The children appear to have been playing with a gun at the 2-year-old’s home in the 3500 block of North 9th Street on Thursday at about 4:23 p.m., police said. The 4-year-old boy was handling the gun when the weapon discharged, shooting his cousin in the chest. The victim’s mother and her boyfriend were home at the time of the incident, according to police.

The wounded boy was rushed to Temple University Hospital and then transferred to St. Christopher’s Hospital for Children in critical but stable condition, police said. Authorities are not releasing the names of the boys because of their ages.

The victim’s mother, Rachel Santiago, 34, and her boyfriend, Omar Laboy-Vega, 34, have been arrested in connection with the shooting, according to ABC's Philadelphia station, WPVI.

She has been charged with child endangerment, and he has been charged with a firearms violation, WPVI reported.

The Philadelphia Police Department did not immediately confirm the reported arrests and charges to ABC News today.

Toddler shootings aren’t rare. According to The Washington Post, there were 51 shootings involving toddlers in the United States from Jan. 1 to Oct. 20 of this year. In 2015, there were 58 shootings committed by toddlers in the country, an analysis by the newspaper found.

This is a developing story. Please check back for updates.