wash their hands: In the ancient world, people sometimes washed their hands to show they were innocent. This action showed that they were not guilty of wrongdoing (compare Matthew 27:24).
In this case, the community washed their hands to declare that they were not responsible for the crime. The crime had taken place near them, but they had not committed it.