BARNSTABLE — A children’s boating instructor for Boat Safe Massachusetts and several Cape Cod yacht clubs was arrested Wednesday and charged with possession of child pornography and distribution of child pornography, according to a Barnstable Police Department statement.

Ronald Walsh, 66, of Mashpee, was arraigned Thursday in Falmouth District Court and released on his own recognizance, the statement says.

Barnstable police detectives, with help from the Barnstable County Sheriff’s Office and the Mashpee Police Department, executed a search warrant Wednesday at Walsh’s apartment on Wampanoag Drive in Mashpee.

The search warrant was a result of a Barnstable Police Department Internet Crimes Against Children investigation that spanned several months and focused on a computer at the Wampanoag Drive address, which was distributing child pornography images and videos, the statement says.

The investigation revealed at least one computer that had the file-sharing software used to distribute the child pornography, the statement says.

Several digital devices were seized during the execution of the warrant and are being examined as this investigation continues, according to police.

Walsh was taken into custody Wednesday and initially held on $5,000 cash bail. Walsh is the only instructor listed on the website for Boat Safe Massachusetts.

Nobody picked up a call to the phone number listed for the business.

Dissemination of child pornography carries a minimum mandatory prison sentence of 10 years with a maximum sentence of 20 years. Possession of child pornography carries a prison sentence of no more than five years.