Ghana's defence and environment ministers are among eight killed when a military helicopter crashed, the government has said.