Teachers will soon wear device that can instantly trigger schoolwide alert