Brazil police have smashed a terrorist ring just weeks before the start of the Rio Olympics, according to a judicial source.

Federal forces carried out a series of raids in an anti-terror operation on Thursday morning, the source told Reuters.

Police reportedly arrested members of a group planning an unspecified act of terrorism, he said.