4-year-old in critical condition after accidentally shooting himself, police say