Ground-based K-band detection of thermal emission from the exoplanet TrES-3b