The Senate on Monday rejected an effort to bar suspected terrorists from buying guns.

The amendment to a bill dealing with the Affordable Care Act was offered by California Sen. Dianne Feinstein, a Democrat. It would allow the U.S. to block the sale or transfer of guns to suspected or known terrorists.

The amendment needed 60 votes to pass, but got only 45 yes votes in the Republican-controlled Senate. Just one Republican, Mark Kirk of Illinois, voted with Democrats to approve the measure.

The vote came a day after a mass shooting in San Bernardino, Calif., that left 14 people dead. President Barack Obama said Thursday it was unclear if terrorism or another motive was involved, but did not rule out a terror link.