Action of a minimal contractile bactericidal nanomachine