At least 10 people have died, and others have been injured in a shooting attack at a school in the Austrian city of Graz, its mayor has said.