Man with gun at Morgantown law firm gave a confession before 5-hour standoff, lawyers say