MADISON, Wis. (AP) -

Dane County authorities say the Madison man shot and killed by police last week after allegedly charging at them with a sword had a history of mental illness.

Sheriff's spokeswoman Elise Schaffer tells the Wisconsin State Journal the 43-year-old man had been taken to mental health facilities in 2004 and 2008 as part of court-ordered commitments.

Deputies had asked police Friday to help them evict Brent E. Brozek from his condominium following foreclosure.

Police spokesman Joel DeSpain says Brozek ultimately came outside and rushed at officers brandishing a large sword. DeSpain says a nonlethal beanbag round was ineffective, and that multiple officers opened fire.

Brozek's former boss says Brozek was fired from his job as a cab driver in January for alluding to executing a female passenger.