Machete-wielding man ambushes, wounds officers; suspect shot, killed