A Florida man has pleaded guilty to plotting to bomb a Jewish center during Passover.

A U.S. Department of Justice statement said 41-year-old James Gonzalo Medina of Hollywood pleaded guilty Wednesday in Miami federal court to a federal hate crime and a charge of attempting to use a weapon of mass destruction.

Authorities said Medina admitted to planning to attack the Aventura Turnberry Jewish Center. Medina was arrested in April 2016 after approaching the center with a fake bomb provided by an undercover FBI informant.

FBI recordings showed Medina allegedly supported the Islamic State terrorist group and claimed an obligation to attack Jews in the U.S.

The Sun Sentinel reports that Medina told U.S. District Judge Robert Scola Jr. he was manipulated in the undercover sting but also said he committed the crime.