Inmates rampage through offices, set fires at Kansas prison