A Wareham man attacked by a shark earlier this month in North Carolina has been released from the hospital.

Andrew Costello, a former editor of the Boston Herald and The Standard Times, suffered wounds to his rib cage, lower leg, hip and hands as he tried fighting off the shark in the waters of North Carolina's Outer Banks on July 1.

The 67-year-old Costello was released from the Vidant Medical Center in Greenville, N.C., on Saturday and is now home. In a written statement, Costello says, "While I'm glad to be home, I remain focused on my long road of recovery. I want to thank my family, friends and staff at Vidant Medical Center for their love, support and excellent care that I received."

Chief of trauma and acute care surgery at Vidant Medical Center, Dr. Eric Toschlog praised Costello's demeanor during treatment. "The success of his outcome was definitely related to his positive outlook, aggressive participation in care and support of his outstanding family. We wish him all the best."