At least eight people have been killed and several more were injured in a school shooting rampage carried out by a pupil at an Austrian school.