Malik Monk beat the buzzer from three-point range to earn the Charlotte Hornets a dramatic win over the Detroit Pistons.