At least nine people have been killed and others injured in a shooting attack on a school in the Austrian city of Graz, the city's mayor has said.