Stellar contents and star formation in the young star cluster Be 59