A man in his 50s was injured when both of his legs were bitten in a bear attack on Sunday, police said.