Microlensing technique reveals small, rocky extrasolar planet