A nine-month-old Pakistani baby has been released on bail over an attempted murder charge and the policeman who forced the crying infant to appear in court has been suspended.

Baby Mohammad Musa, along with other members of his family, was booked for throwing rocks at gas company officials carrying out an anti-theft inspection in the low-income Ahata Thanedaran neighbourhood of Lahore on February 1, the family's lawyer Chaudhry Irfan Sadiq said.

Inspector Kashif Muhammad, who attended the alleged crime scene and has since been suspended, wrote in his report that it was a case of attempted murder.

Appearing in a packed court room with around 30 others accused in the case on Thursday (local time), Musa was seen crying as his grandfather Muhammad Yasin, a 50-year-old labourer, held him on his shoulder.

He later drank milk from a bottle as Yasin fielded questions from reporters.

"Everyone in the court was saying 'How can such a small child be implicated in any case? What kind of police do we have?'" Yasin said.

He accused the police of fabricating the charges because they were colluding with a rival party who wanted to see the accused evicted from their land.

Critics say Pakistan's notoriously corrupt police force often trump up false charges either to extract bribes or because they have been paid off.

Judge Rafaqat Ali Qamar ordered the inspector to be suspended and granted the child bail, though he will have to appear at the next hearing on April 12.

But the family's lawyer said the charges against the child should have been dropped.

"The court should have simply referred the minor's case to high court for dropping of the charges against the innocent child and acquit him from the case as the minimum criminal responsibility age is seven," Mr Sadiq said.

Pakistan last year approved raising the minimum age of criminal responsibility from seven to 12 years, except in terrorism cases.

AFP