Justice Nnamdi Dimgba had ordered Mohammed, who was arraigned before him on Thursday, to be remanded in Kuje Prison pending the hearing of his bail application.
But the SSS failed to produce him in court on Friday while his counsel argued his bail application.
The judge said he took strong exception to the service’s disregard of the court’s order by keeping the defendant in its custody, describing it as an embarrassment to democracy.
He said: “I take a strong exception to this type of behaviour; when the court orders that someone be kept in prison custody, the person ought to be kept in prison and not in the office.
“If the people at the DSS want to become judge and do their job as well, I am ready to vacate my office for them, but as long as I am still here, I take an exception to them flouting the orders of the court.
“Once processes have been filed in court, it is no longer in their hands and the order of the court must be obeyed,’’ Mr. Dimgba said.
He asked the prosecuting counsel, E.A Orji, to convey the grievances of the court to the Attorney-General and Minister of Justice.
Counsel to the accused person Hassan Liman, SAN, had told the court that the SSS whisked Mohammed away immediately after the court proceedings ended on Thursday.
Mohammed is charged with money laundering, possession of firearms and violation of the provision of Official Secret Act.