The San Diego Chargers kept alive their play-off hopes with a shock 27-20 victory over the Denver Broncos.