You need to enable usb debugging. Use your mouse to,
Go into settings then look for software information then find the build number.
Click on the build number 7 times and a pop up should say you are now a developer.
Click back into setting and click on developer options, scroll down to usb debugging and enable it. Go back to the Home Screen and try connecting your computer again.