Judge dismisses charges against ex-administrator accused after student shot teacher