3M is teaming up Bain Capital to buy Madison Fire & Rescue for $1.95 billion as part of a deal to form a new fire and safety venture.