Get a flashgun, something you know how to control and use effectively.
Meter the sunset (or your background) and set your camera for that - e.g., if your in camera's light meter tells you the sunset is 1/125th of a second at F8 ISO 100, dial in those numbers in manual mode for your camera.
Set your flash for one stop UNDER the above settings or whatever you metered for your camera - taking the above settings, set your flash's power for F5.6. If you don't know how to set up your flash for 5.6, read your manual and follow guide numbers. Simple calculations are Distance = GN / F-stop
Example:
Distance of flash from subject = 100 / 5.6
Flash distance from subject is 17.8
I hope this helps! Alternatively, if you're using ETTL, you can use your camera's speedlight to dial in -1 FEC to make things easier. Keep in mind, however, if you ever do manual flash or want to take further control by manually controlling your flash, the above info is good to know.