The US supreme court has thrown out a lower court’s ruling that had let the family of a slain 16-year-old Mexican boy pursue a civil rights lawsuit against a US border patrol agent who shot the teenager from across the border in Arizona.

The justices took the action in light of their ruling last Tuesday in a similar case in which they decided on a 5-4 vote to bar a lawsuit against another border patrol agent for fatally shooting a 15-year-old Mexican boy from across the border in Texas.

Last week’s ruling prevents civil rights lawsuits by foreign nationals in US federal courts involving such cross-border incidents when the person who is injured or killed was not on American soil. The supreme court, with its conservative justices in the majority and its liberals in dissent, backed the position taken by Donald Trump’s administration in the case.

In the Arizona case, border patrol agent Lonnie Swartz killed Mexican citizen José Antonio Elena Rodríguez in 2012. Swartz was prosecuted criminally for the shooting but a jury acquitted him on one count and deadlocked on another in 2018. He faced a second trial later that year on a separate charge and was acquitted.

Rodriguez had been walking down a street in Nogales, Mexico when Swartz, standing on an embankment on US soil, fired through a border fence, striking the teenager about 10 times. Swartz said he acted in self-defense in response to a group of rock throwers, while Rodriguez’s family said the teenager was walking peacefully.

The San Francisco-based ninth US circuit court of appeals had ruled in 2018 that the lawsuit seeking damages for the killing could proceed.