Police investigating where gun in officer shooting came from