An 81-year-old hunter has gone on trial for killing a protected brown bear that attacked him and mauled both of his legs.