Detroit police shot and killed a suspect in the death of a 5-year-old Detroit girl, who was shot in the head Thursday night and her mother sprayed with bullets while they slept.

According to Detroit Police, the incident started when one or more intruders — at least one of whom was wearing a mask — broke into a home in the 19000 block of Lyndon and started shooting.

Police chief James Craig said the girl was shot once in the head and the mother 16 times in the torso and extremities. It is unclear whether the girl was intentionally targeted, Craig said.

The girl was transported by police to Sinai-Grace Hospital, where she died. The mother was later taken by ambulance to Sinai-Grace, where she is listed in critical condition.

After the shooting and an investigation, the police Special Response Team — the department's term for a SWAT team — executed a "high-risk" search warrant on a nearby home in relation to the shooting.

The first officer who entered the building saw a 46-year-old man with an "AK-47-type weapon." The officer shot and killed the man.

The officer said the man pointed the weapon at him. Police are reviewing body camera footage but Craig said it wasn't clear yet whether there would be footage clearly showing the gun pointed at police.

Craig told reporters that "10 bundles of heroin packaged for sale" were found in another room of the house.

The man who was shot in the raid was related to the victims of the earlier shooting, Craig said. He said two other suspects, a man and a woman, had been taken into custody. The female suspect was the sister of the injured mother and was arrested at the scene.

Also on freep.com:

'White Boy Rick' event has family drama on screen — and in the theater

Aretha's tomb is open to the public and fans are paying their respects

Family members of the girl and mother told WDIV-TV (Channel 4) that the second home was the address of the girl's father.

Craig said that a dispute between sisters may have been involved. He added that witnesses told police there had been a loud argument several hours prior to the shooting.

Speaking about the initial shooting, Detroit Police Cmdr. Elaine Bryant said the incident was "tragic" and that "the child is an innocent victim."

Craig said: "My heart and prayers go out to the family."