TeV γ-rays and cosmic rays from the nucleus of M87, a mis-aligned BL Lac object