At least 20 people have been killed and dozens more injured after an Israeli airstrike targeting a school in Gaza, health authorities have said.