HUNTSVILLE, Texas (AP) — An illegal immigrant who claimed his treaty rights were violated when he was arrested for a robbery and murder has been executed in Texas.

The execution came Thursday evening after the U.S. Supreme Court rejected the appeal of Heliberto Chi. It was the second case of its kind this week in Texas.

His lawyers argued he should have been told he could get legal aid from the Honduran consulate after being arrested.

The arguments used by Chi's lawyers were similar to those used unsuccessfully Tuesday by lawyers for Jose Medellin.

The Mexican immigrant was executed this week for participating in a rape and murder of two Houston teens.