A bail hearing is set for a man charged with plotting to bomb a Jewish synagogue and school in South Florida.

Federal prosecutors say they oppose bail for 40-year-old James Medina of Hollywood, calling him a flight risk and danger to the community. The hearing is Thursday in Miami federal court.

Medina faces life in prison if convicted of attempted use of a weapon of mass destruction. The FBI says Medina plotted with an undercover informant to obtain an explosive device to use at the Aventura Turnberry Jewish Center during recent Passover observances.

Medina was arrested after the informant gave him a fake bomb.

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