Well, if they are attacking you with their butt.
I saw a video a while ago of a robbery in a barber shop. The robber was shot dead in the back. But in that case he was armed and sill in the shop. It was a legal shoot.