iMessage stuck in Notification Center
I was able to fix this by killing Notification Center with the following command:

killall NotificationCenter


You could also force-quit it from Activity Monitor.

Source.