Hamas security forces briefly detained the Fatah-allied Palestinian attorney general Thursday after accusing him of taking important information from his office.

Witnesses say Hamas forces seized Attorney General Ahmed Mughani at his office in Gaza City and released him a short time later.

Mughani said the Hamas-led Executive Force asked him to sign an agreement to resign his duties and to remain in Gaza. The attorney general said he refused to sign the conditions and called Hamas' action a violation of the law.

Mughani is close with the Fatah-led Palestinian government in the West Bank, which is headed by President Mahmoud Abbas.

Hamas, which took control of the Gaza Strip nearly two months ago, says it is aiming to reform the territory's justice system.

Some information for this report was provided by AFP, AP and Reuters.