A cell phone video appears to have captured the confrontation that led to the stun-gun death of an illegal immigrant by U.S. border agents.

Anastacio Hernandez Roja, 42, was buried Wednesday after a mass in Lemon Grove. The father of five died nearly two weeks ago as he was being deported from the U.S. at the San Ysidro Port of Entry. Border agents said he became violent when they removed his handcuffs. They said he fought with them and was eventually shot with a Taser gun.

Hernandez had methamphetamine in his system and died of a heart attack according to the medical examiner. His death was ruled a homicide.

The cell phone video reportedly shot by a passer-by during Hernandez's struggle with border agents recorded his cries. At one point, the person taping the incident asked an agent nearby why the officers were using "excessive force."

Hernandez was one of two people killed recently at the border by Border Patrol agents. A 15-year-old was shot and killed at the border near El Paso, Texas, on Tuesday. The FBI said the teen was part of a group that entered the U.S. illegally and assaulted border patrol agents throwing rocks and firecrackers at them.

Mexican officials have condemned the use of force against both the El Paso teen and Hernandez.

FOX5 called federal agents to get a comment on the video, but our calls have not been returned.

Hernandez had been living and working in San Diego for 28 years.