Here are few tips you can try (try them in order):
1. Check the camera lens for dirt and smudges. Wipe it with a clean cloth.
2. Restart your phone
3. Do a hard reset
If the first three I mentioned does not work, you may have a defective unit. Contact Samsung and discuss with their reps how you can get your phone fixed or replaced.