West Palm Beach police arrested Shakendra Katrell, 24, Thursday night in connection with the shooting.
Investigators said Katrell fired at least three 9mm rounds at an apartment located in the 5500 block of Haverhill Rd. Police said two rounds penetrated the living room of the home.
A mother and her 2-year-old daughter were inside the apartment at the time of the shooting but were not hurt. Police said the toddler was "shaking profusely and crying" when they arrived to investigate.
The mother said she had just returned home with her daughter and starting eating dinner when the shots were fired into their home.