At least six people have been killed and dozens of homes were washed away after heavy rains lash central Afghanistan.