Police officer's quick thinking helps save high school's graduation ceremony