A court in Bosnia Friday sentenced an Islamist militant to 45 years in prison over a 2010 bomb attack on a police station that killed one.