The U.S. attorney general has defended the use of sting operations against suspected terrorists during a speech to a Muslim rights group .