Battlefield martyr: In the specified case, washing is omitted while the Hanafi funeral prayer is offered.
Hadd or qisas: After a legally imposed punishment, both washing and funeral prayer are given.
The relevant legal cause is not merely that a person was killed but the specific juridical classification.