WASHINGTON (AP) -- The Senate has blocked a measure that would have denied a gun sale to a known or suspected terrorist -- but only if prosecutors could convince a judge within three days that the would-be buyer was involved in terrorism.

The largely party-line vote was 53-47 -- seven votes short of the 60 needed to move ahead.

The National Rifle Association supported the measure sponsored by Sen. John Cornyn of Texas.

Copyright 2016 Associated Press. All rights reserved.