O'Shea lays into referee