Superconducting nanowire single photon detector in optical waveguide based on GaAs