Jasper John Stam was charged June 9 for an incident that occurred between May 10 and 18.
Stam was held in custody and ordered not to have contact with the man accused in the recent shooting deaths of three RCMP officers in Moncton.
Stam was released from custody today by a provincial court judge on conditions.
He will be sentenced in September.
The RCMP have said the charge against Stam is not linked to their investigation into the fatal shootings of constables Fabrice Georges Gevaudan, Douglas James Larche and Dave Joseph Ross on June 4.
Justin Bourque is charged with three counts of first-degree murder in those deaths.
Bourque is also charged with two counts of attempted murder after two other officers were hurt in the shootings.