Fabrication and characterization of an ohmic GaAs nanowire photodetector