SALT LAKE CITY — Utah lawmakers rejected a measure Monday that would have allowed police to temporarily confiscate guns from those deemed to be a threat, ending the only piece of gun control legislation that the conservative state took up after the Florida school shooting.

The proposal, sponsored by a Republican lawmaker, is similar to “red flag” efforts that a number of states are debating after the deaths of 17 people in Parkland, Florida, increased calls to curb mass shootings.

Members of the Republican-dominated House Judiciary Committee defeated the bill because they worried it went too far in violating a person’s constitutional rights and that it didn’t do enough to address mental health issues.

The bill drew opposition from the National Rifle Association.