Police officers in Massachusetts did not commit a crime when they fatally shot a man last April, a district attorney ruled.