Coast Guard Lieutenant Christopher Hasson, who is said to have been building an arsenal and plotting a domestic attack, will be released from detention.