The boy is now facing a homicide charge after investigators say he admitted he had his father “in mind” when he pulled the trigger.

The shooting happened in Duncannon Borough, Pennsylvania, in Perry County, according to Pennsylvania State Police.

Cops were called to a home on South Market Street at about 3:20 am on Tuesday, January 13, after a report of an “unresponsive male,” according to court papers obtained by NBC affiliate WGAL.

Inside, troopers found 42-year-old Douglas Dietz dead from a gunshot wound to the head, the documents state.

Police said Douglas was found in bed in the bedroom he shared with his wife.

That room was connected to their son’s bedroom by a closet.

According to the documents, Douglas’ wife told police she was asleep when a loud bang woke her up.

She said she smelled something like fireworks, then tried to nudge her husband, but he did not move, the papers say.

The woman told investigators she heard what she thought was water dripping.

When she turned on the light, she realized it was blood, according to the documents.

Police said the couple’s 11-year-old son then came into the bedroom and yelled, “Daddy’s dead.”

Troopers at the scene also reported hearing the child tell his mother, “I killed Daddy,” the documents say.

Court papers said Douglas and his wife adopted the child in 2018.

The affidavit says the killing happened on the child’s birthday.

The family had gone to bed shortly after midnight after singing happy birthday to him, the documents state.

The suspect told investigators he had a good day with his parents, according to police.

But when his dad told him he needed to go to bed, he got mad, the papers say.

When questioned, the suspect told investigators, “I shot somebody,” according to the affidavit.

Police said he admitted he had someone in mind who he was going to shoot, and identified that person as his father.

The wife told police there was a gun safe in the bedroom, but she denied knowing where the key was kept, investigators wrote.

The accused told investigators he found the key in his father’s drawer, according to the court documents.

Police said he unlocked the safe while trying to find his Nintendo Switch, which had been taken away from him.

According to the affidavit, the suspect child admitted to removing the gun, loading bullets into it, and walking to his father’s side of the bed.

Police said he pulled back the hammer and fired one shot at his dad.

When asked what he thought would happen when he fired, investigators said he replied he was mad and had not thought about it.

The child was taken into custody and charged with criminal homicide, state police said.

He was denied bail and is being held at the Perry County Prison, where a hearing is scheduled for Thursday, January 22.

The Susquenita School District later released a statement addressing the community impact.

“We recognize that in a close-knit community such as ours, events like this can affect our students.

“Our school counselors and psychologists are available to provide support to any students in need,” the district said.