Using A 4 Ohm Speaker With Arduino
5v, 4ohm, >1amp from a pin rated for 0.04amps; this isn't safe!
You would need a driver, but it would suffice to add a small transistor &amp; a couple of resistors to drive it; here is a slightly more complex layout, there are many examples on the web.