The Nigerian military has rejected an Amnesty International report accusing it of commiting war crimes during its fight against Boko Haram.