At least 10 people were killed and at least five seriously wounded in the attack at an adult education centre west of Stockholm.