At least 11 people are known to have died after gunmen targeted civilians at a picnic spot in western Afghanistan.