Elementary school teacher threatens to ‘shoot up the school,’ investigators say