Pats agree to terms with sixth-round pick