US discount retailer Kmart has reported a first-quarter net profit, compared to a net loss a year earlier.