Israeli army says it is striking targets after Hamas announces it accepted a truce proposal put forward by mediators.