Jordan’s announcement that it has foiled an al Qaeda plot to bomb the capital highlights the threat to Washington’s ally