Detection of nonthermal emission from the bow shock of a massive runaway star