Police officer targeted in ambush