The girl and her mother had both been named as protected persons in an order of protection against Ruben Nieves, 35.
Nieves was charged with attempted murder, aggravated battery with a firearm, violating an order of protection and other charges related to the shooting.
Police said he shot the girl about 1:45 a.m. on Nov. 4 as she was entering her apartment, in the 2400 block of North Lowell Avenue in the Belmont Gardens neighborhood. Her mother wasn't injured.
Nieves lives in the 2400 block of North Monitor Avenue, about two miles away, in the Belmont Central neighborhood