For what it is worth, that frozen banner is not a sign of an infection. It is the Notification Center process itself hanging mid-animation, and quitting it the way you did is exactly the right fix, the process restarts itself cleanly. The Terminal equivalent is: killall NotificationCenter
It is usually a one-off after an update, when the notification database and widgets are being rebuilt in the background. If it starts happening regularly, watch whether it is always the same app's banner that freezes, and try removing that app's Notification Center widgets. A corrupt widget is the most common repeat offender. If it freezes even with no third party widgets, a Safe Mode start will tell you whether something you have installed is tripping it up.