The correct choice to fill in the blank is "it." The sentence should read:
"Not only the crickets but also a frog chirped outside David's window for so long last night that it kept the poor boy from getting any rest before his important pronoun agreement quiz."
In this case, the subject is singular (referring to the sound made by the crickets and the frog as a singular phenomenon), so "it" is the appropriate pronoun to use.