MACHIAS, Maine — A local man with a record of assault who allegedly injured the Baileyville police chief last Wednesday was released on unsecured bond this weekend after a mix-up in court regarding his criminal record.

David Wong Troy, 49, was released Friday from Washington County Jail after a court hearing before Judge John Romei, according to Sheriff Donnie Smith.

Smith said that just before the hearing, when court personnel put Troy’s name into a police computer used to check backgrounds and convictions, the wrong name was entered so the court did not know of his previous conviction.

Troy was arrested Wednesday after he allegedly assaulted Baileyville Police Chief Phil Harriman when Harriman attempted to serve him with a protection from harassment order.

Story continues below advertisement.

The order was on behalf of the American Automobile Association, said Smith, and mirrors harassment orders served in the past on Troy by FedEx, UPS and the U.S. Postal Service.

Troy is a licensed veterinarian who apparently has not been working at any area practice.

“Clearly this man has some mental health issues,” Smith said.

In July 2008, a federal judge sentenced Troy to a year of probation — he could have received up to a year in jail — for assaulting a U.S. Customs and Border Protection officer a year earlier at the Ferry Point Bridge port of entry in Calais. He originally was charged with striking two agents, but Troy was acquitted of one charge.

According to an earlier story published in the Bangor Daily News, Troy is a New York native who moved to Maine five years ago. Troy earned his degree in veterinary medicine from Cornell University in Ithaca, N.Y. He practiced in New York City for nearly two decades before undiagnosed mental health problems apparently caused him to seek a quieter lifestyle in rural Maine, according to court records.

In November 2007, Troy went to the Calais port of entry to complain to a supervisor about what he considered to be previous unfair treatment by border patrol agents, according to court documents. When he refused to speak to officers or stop when told to do so, an agent touched his arm to get his attention.

Troy began flailing his arms and struck the agent, who was unhurt in the incident.

That was not the case last week in Baileyville where Chief Phil Harriman ended up with a serious face laceration.

According to Washington County Deputy Shawn Donahue, Harriman went to Troy’s home on Main Street in Baileyville to serve the protection order and allegedly was assaulted. Several officers from other agencies came to Harriman’s assistance and Donahue arrested Troy.