MIAMI (AP) _ A man who fatally shot his ex-wife in front of a television camera near his daughter's grave was arrested Wednesday in Texas, authorities said.

Emilio Nunez, 34, who blamed his daughter's suicide on his former wife, tried to pull a gun on FBI agents who stopped a Greyhound Bus bound for Los Angeles near Fort Stockton, Texas, on the pretense of looking for illegal aliens, said Lt. Lou Cavallo of the North Lauderdale Police Department. Nunez was disarmed and arrested, Cavallo said.

''It was a border patrol simulation, a routine alien check. Everyone exited from the bus, a struggle ensued. He went for his weapon that was in his pouch, and he was restrained,'' Cavallo said at a news conference Wednesday.

Cavallo said investigators believe the 9mm pistol seized on the bus was the same weapon used in the cemetery shooting.

Police received a tip through Dade County Crimestoppers that Nunez was on the bus. He faces state murder charges and federal charges for unlawful flight, and will be held pending a hearing to send him to Florida, Cavallo said. A detention hearing was scheduled for Monday.

The slaying occurred as Nunez was being interviewed Monday for the Spanish- language program ''Occurrio Asi,'' or ''It Happened Like This,'' a show similar to ''A Current Affair'' and ''Hard Copy.''

He and the television crew were at the North Lauderdale cemetery where his 15-year-old daughter, Yoandra Nunez, is buried. She killed herself Thanksgiving Day.

On the videotape, shown Tuesday on the Telemundo network and rebroadcast around the country, Nunez told reporter Ingrid Cruz that his daughter was abused by his ex-wife, Maritza Martin Munoz, 33. He said the girl committed suicide after her mother slapped her when the teen-ager revealed she was pregnant.

When the ex-wife pulled up to the cemetery, apparently by coincidence, the tape showed Nunez pushing past Cruz and cameraman Jorge Delgado to fire into Martin's head at point-blank range.

As the reporter and cameraman fled, Nunez stood over Martin and fired repeatedly.

''I should have done it a long time ago 3/8'' he said afterward in Spanish.

Cruz said despite the violence, she was ready to interview Nunez again.

''I want to find out why he killed her,'' she told The Associated Press. ''I want to go to Texas to interview him again. I'm making arrangements.''

Nunez had fled immediately after the shooting, leaving his car in Hialeah. The weapon was not found inside.

North Lauderdale Detective Robert Edgerton said Nunez was travelling with another man. The man, who police would not identify, didn't help in Nunez's interstate flight and was not detained, Edgerton said.

Monday's events may have been foreshadowed in November. Police attended the teen-ager's funeral after the distraught father threatened to kill other family members, said a spokesman for the Archdiocese of Miami, which owns the cemetery.

Nunez, who had worn only black since his daughter's death, told the reporter he wanted justice. He said he planned to pursue all means, even if he had to go to the Congress.

''I don't know what I'm going to do,'' he said at one point during the interview.