Its a known issue with never versions of macOS - Apple got really restrictive when it comes to sideloaded apps.
Got to the System Settings > Privacy & Security and then scroll down until you see the “Open anyway” button, as highlighted on the screen. Then click it, and installation should proceed.