An Arizona man has been arrested in the accidental shooting of his 6-year-old daughter, who cops say was critically injured as her father was teaching her gun safety.

Eldon McInville, 26, was arrested and charged with child abuse and aggravated assault after cops were called to his Glendale home Thursday afternoon in response to a shooting. The girl was shot in the abdomen and faces months of recovery.

“He advised that he had the victim in his room and was teaching her gun safety,” court papers said, according to KPNX-TV.

'PERSON OF INTEREST' IN 5 DEATHS IS SHOT, CAPTURED IN TENNESSEE, AUTHORITIES SAY

He also advised that as he was cleaning the weapon and he half-cocked it "so he could load birdshot ammunition into it for storage,” according to the court papers.

Mugshot for Eldon McInville, 26, charged by police in Glendale, Ariz., with assault and child abuse in the accidental shooting of his daughter, 6, as he was teaching her gun safety. 

Mugshot for Eldon McInville, 26, charged by police in Glendale, Ariz., with assault and child abuse in the accidental shooting of his daughter, 6, as he was teaching her gun safety.  (Glendale Police Department)

“He stated that when he loaded the weapon he was seated on the floor of the bedroom and that when he went to stand up he slipped and fell and somehow the gun went off.”

Cops said they were told that the weapon was a shotgun he had recently purchased.

GEORGIA GIRL, 6, DIES AFTER BROTHER ACCIDENTALLY SHOOTS HER IN HEAD, POLICE SAY

The court papers state that McInville told the cops that he was cleaning the shotgun for the first time and had researched how to load it on YouTube and Google, according to the station.

A sobbing McInville pleaded with a judge to release him so he could help his family during a court appearance Friday, Fox 10 Phoenix reported.

The judge responded that while it did appear to be an accidental discharge “under exceedingly reckless circumstances” she was imposing bail.

CLICK HERE FOR THE FOX NEWS APP

The bail was set at $50,000 in cash, which McInville had not posted as of Saturday.