Texas police officer killed in ambush