There are actually two ways of handling this issue. The first one is for less tech savvy users, and it goes through opening the System Preferences/ Security and finding there a button saying: Open this app anyway. Afterwards you are prompted to enter your administrator password and that is it.
The second way is over Terminal, by typing in the following command: sudo spctl --master-disable and subsequently entering your administrator password again.