The latest truce between Palestinian factions in the Gaza Strip appeared shattered Monday as gunmen opened fire at the cabinet building while the government was meeting inside.

Less than a day earlier — late Sunday —  the warring Fatah and Hamas factions had reached a new Egyptian-mediated truce deal in the latest attempt to halt renewed bloodshed that has threatened the three-month-old coalition government.

There were no reports of injuries in Monday's attack. An official in the office of Prime Minister Ishmail Haniyeh, of Hamas, said the gunfire didn't disturb the cabinet meeting, and that security officials were trying to pin down the source of fire.

The attack came amid reports of Hamas loyalists trading sporadic gunfire in the streets with gunmen loyal to President Mahmoud Abbas's Fatah movement.

Fatah gunmen also fired shots at the prime minister's house in Gaza City on Sunday night, but no casualties were reported.

The new pact was aimed at ending renewed violence, which has since Saturday alone killed at least six people and wounded dozens. The dead included a Hamas imam who was executed at the front of his mosque and a Fatah-linked security official who was shot and thrown from the roof of a high building.

The truce was declared to allow Palestinian students to write their final exams.

The battles have been sparked by an ongoing dispute over who will control security forces within the deeply fractured coalition government.

A deal to form a coalition government was finalized in early February, more than a year after the Palestinian Authority election that saw Hamas oust the long-dominant Fatah party.

The Hamas government was forced to form a coalition amid a Western-led boycott that shut off billions of dollars in aid to the Palestinians and after months of violence between Hamas and Fatah supporters.