ELLSWORTH — A federal lawsuit brought against the county by a guard at the Hancock County jail who was injured during a scuffle with an inmate has been settled out of court.

John Wall, at attorney for the county government and the sheriff’s department, said Tuesday that the sides had reached an agreement but that exact terms still needed to be finalized.

Wall tells the Bangor Daily News that the deal will be kept confidential.

Brad Ewing said he suffered a back injury during an incident with an inmate in early March 2009. He was placed on medical leave a day later and underwent back surgery in mid-April.

The complaint alleges that Sheriff William Clark and jail administrators violated Maine’s laws by refusing to make “reasonable accommodations” for Ewing’s return to work.