Police say officer fired gun near station