An Israeli air strike near a mosque in Gaza killed at least five Palestinians, including three children.