According to the prosecutor, the defendant was handed over to the police after a neighbour caught him in the act.
The committee said one of the suspect confessed to committing the act with a seven-year-old child, and the second abused an almajiri child.
The suspect attempted suicide by stabbing himself in the neck and stomach, said the police.
Mr Ohanele, aka Papa, lured the victim to his house with a promise to give him a biscuit.
The police said the minor lured the nine-year- old boy into an uncompleted building in Rimin Kebe Quarters and sodomised him.
The Nigerian Security and Civil Defense Corps (NSCDC) in Sokoto has arrested five people for kidnapping, raping, and sodomising children aged five to 14.
The boys are orphaned by the banditry in Zamfara.
The man allegedly deceived and lured a 10-year-old boy into his living room and had anal sex with him several times.
The victim revealed that one of the suspects took him to a particular location where he threatened him with a knife and tied his hands.