If you have a save before killing the imp, you can manually hex edit a file in the save folder to fix him being hostile (see
Help, the imps hate me!!), or use a program created by Jem in the Steam discussion
Imp Council Member.
If you don't have a recent save that you can revert back to, it is possible to resurrect the imp using the procedure in the
Reviving dead NPCs topic (see also the topic
Teleporting Anywhere, via hex editor as a reference).
If you zip the data.000 file from your latest save and email it to me (raze@larian.com), I can resurrect the imp.
Each save is a folder in the '..\SteamApps\common\divine_divinity\Savegames' folder (or similarly for the GOG install path).