The lower house of the German parliament voted on the new measure hours after two female pupils , 13 teachers , a school secretary and a police officer were shot dead by a student who had recently been expelled .