Uzma, 20, has been staying at the Indian mission in Islamabad and refused to leave the High Commission premises until she is repatriated to India.
The cellphone was later returned to him and no charges were pressed.
When courtroom officials brought the incident to the notice of the judge, Singh's phone was confiscated and he was asked to submit a written apology by the court.
According to Uzma, her husband Tahir tricked her into marrying him since she had no knowledge of his first wife.
Piyush Singh, First Secretary of the Indian High Commission, had gone to the Islamabad High Court for a hearing involving Indian national Uzma, the News International reported.
Uzma, on 8 May, had alleged that she was forced to marry Ali at gunpoint, adding that she was unaware that the latter was already married and a father of four children.
He also requested the court to schedule the hearing for his petition on Monday. She also sought exemption for reporting to police and permission to return to India.
"I urge the court to ask the Foreign Office to issue duplicate travel documents so that I may travel back to India", she added.
Ali rejected the allegations of physical and sexual violence and said Uzma should be medically examined to establish the claims.
Ali said that he Uzma's husband and under the law he can meet her in a free atmosphere.
In her statement, Uzma said she came to Pakistan to meet a relative and not to marry Tahir Ali.
The Ministry of External Affairs (MEA) on Wednesday assured that India is coordinating with the Pakistan Foreign Office for the safe return of an Indian woman Uzama, who alleged that she was sedated, tortured and forced to sign a nikah nama at gunpoint in Pakistan.
"She will be sent back to India as soon as the legal problems are resolved".
In his petition, Ali stated that he is a taxi driver in Malaysia and in 2016, he met Uzma and their relationship further evolved into an agreement that they should tie the knot.
Calling her husband and the Foreign Office as parties to the case, Uzma declared the Indian High Commission in Islamabad's diplomatic enclave as her residence.