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