High Energy Emission from Magnetar Due to Giant Flare