Using human shields makes you a war criminal. Attacking someone using human shields does not technically make you a war criminal, because it does not endanger civilians without furthering your "just" goal of killing that war criminal.
Please correct me if I am wrong. You still should consider if killing the war criminal is worth the cost and this does not mean civilians had it coming by any means.