PROVIDENCE, R.I. (AP) — A Rhode Island state senator is apologizing for cursing at a gun rights advocate at the Statehouse.

Last week Democratic Sen. Joshua Miller of Cranston used a profanity to insult Dan Bidondi, a gun rights supporter who had confronted Miller following a Statehouse rally in support of legislation to ban the sale of semi-automatic firearms. Bidondi, who has criticized the legislation as unconstitutional, filmed the exchange and posted it online.

Miller says Bidondi had been intimidating supporters of the legislation, who included religious leaders and elderly veterans. Miller says Bidondi's behavior prompted his "human and guttural" response.

Miller said Tuesday that his words were unjustified and he offered his apologies.

A message left with Bidondi on Tuesday was not immediately returned.