Man suspected to have mental health condition sets fire to court building