Man is cleared of terror charges