Senior official announces ceasefire agreed, hours after defence ministry said shelling had stopped, but no confirmation.