WHITE RIVER JUNCTION — Less than an hour after he paid a $15,000 fine in a drug case and was released from court, a New Jersey man was back in trouble with the law.

Mohamed Hamdi, 22, of Jersey City, N.J., was arrested outside the Hartford Police Department, where he’d gone to retrieve personal items after leaving White River Juntion criminal court Tuesday. A police detective saw him get out of a car driven by his girlfriend, police said.

Hamdi was supposed to stay away from the woman, who had an active relief-from-abuse order issued by a court in Claremont, N.H., police said.

Hamdi was arrested and cited back into court, where he pleaded innocent Wednesday to violating an abuse-prevention order. He was again released on conditions that included he have no contact with the woman.

A day earlier, he struck a plea deal and paid a $15,000 fine for felony cocaine possession in November.