Australian international Glenn Maxwell fired 81 and took a wicket as the Warwickshire beat Kent in three days.