Calls and emails to Ms. Keller on Monday evening seeking comment were not immediately returned.

Michael Ryan, the Republican vice mayor of the city of Hamilton, which is in Butler County, said on Twitter that Ms. Keller’s post was “a ridiculous statement to make.”

“This isn’t a time for politics,” he said. “This is a time for grieving, coming together and healing.”

Chris Seelbach, a Democratic councilman in Cincinnati who is gay and married, urged people on Twitter to call Ms. Keller to “let her know what you think.”

The Enquirer, in Cincinnati, described Ms. Keller, a second-term representative who is a candidate for State Senate in 2020, as the “most conservative politician in the room.” The newspaper said that she had derided teenage gun control activists after the school shooting in Parkland, Fla., in 2018; compared Planned Parenthood workers to Nazis; and pushed to ban sanctuary cities.