Prime Minister Benjamin Netanyahu ordered the Israeli military to retaliate after rocket attacks by Gaza Palestinian militants followed the end of a three-day truce on Friday, an official said.