did you try to access recovery mode as the message suggested
First, turn your Galaxy S4 off.
Now, press and hold the Volume Up, Power and Home buttons until you see the Samsung screen.
Release the Power button but continue to press Home and Volume Up until you are brought to the recovery mode on the Galaxy S4.