Dog attack victim pulls out gun, shoots pit bull