Has anthrax or smallpox ever been released in a terrorist attack?

No. There has never been a successful release of either of these agents in an attempted bioterrorist attack.