An inmate accused of killing a Minnesota corrections officer on Wednesday had a history of violence, though his recent “good behavior” had allowed him access to tools and an industrial building—where the officer was killed, authorities said Thursday.