A journalist has criticised Morocco over press freedom after being fined for allegedly not having the right media accreditation.