Invision/AP 1 / 6

NEW YORK (AP) -- A New York judge has dismissed a lawsuit by two photographers who said they were shot at by bodyguards of quarterback Tom Brady and supermodel Gisele Bundchen.

RELATED: See more pics of Gisele Bundchen

The April 2009 incident occurred during a party in Costa Rica celebrating the couple's marriage two months previously.

Photographers Yuri Cortez and Rolando Aviles as well as the news agency Agence France Presse charged that the guards shot at the photographers and narrowly missed their heads.

RELATED: Who are Hollywood's most iconic couples?

The lawsuit was originally filed in federal court in New York and then in Manhattan state Supreme Court.

RELATED: Read more about Tom Brady

Justice Judith Gische says Brady and Bundchen don't live in New York and the lawsuit doesn't belong in the state.